user

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpireToken

func ExpireToken(token string) error

func Get

func Get(id uint32) (uint32, string, error)

Get 用户ID和手机号

func GetIDByMobile

func GetIDByMobile(mobile string) (uint32, error)

GetIDByMobile 通过手机号查询

func GetInfoByToken

func GetInfoByToken(token string) (userID uint32, openID string, err error)

GetInfoByToken 通过token获取userID和openID

func ListByIDs

func ListByIDs(id []uint32) []proto.User

ListByIDs 多用户ID查询

func Login

func Login(loginType uint32, device, mobile, code string) (string, error)

func UpdateMobile

func UpdateMobile(mobile string, userID uint32) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL