Documentation
¶
Overview ¶
Package auth 授权相关逻辑
Index ¶
- func Attempt(phone string, password string) (user.User, error)
- func CurrentID(c *gin.Context) string
- func CurrentUID(c *gin.Context) string
- func CurrentUIDToUint32(c *gin.Context) uint32
- func CurrentUser(c *gin.Context) user.User
- func LoginByPhone(phone string) user.User
- func LoginByPlatUid(platUid, channel string) user.User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUIDToUint32 ¶
func LoginByPlatUid ¶
LoginByPlatUid 第三方登录指定用户
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.