user

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpireToken

func ExpireToken(token string)

func ExpireTokenByID added in v0.6.0

func ExpireTokenByID(token string, userID uint32)

func Get

func Get(id uint32) (uint32, string)

Get 用户ID和手机号

func GetIDByMobile

func GetIDByMobile(mobile string) uint32

GetIDByMobile 通过手机号查询

func GetInfoByToken

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

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

func UpdateMobile

func UpdateMobile(mobile string, userID uint32)

Types

This section is empty.

Jump to

Keyboard shortcuts

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