Documentation ¶
Index ¶
- func ExtractClaims(c *gin.Context) jwt.MapClaims
- func Get(c *gin.Context, key string) interface{}
- func GetDeptId(c *gin.Context) int
- func GetDeptName(c *gin.Context) string
- func GetRoleId(c *gin.Context) int
- func GetRoleName(c *gin.Context) string
- func GetUserId(c *gin.Context) int
- func GetUserIdInt64(c *gin.Context) int64
- func GetUserIdStr(c *gin.Context) string
- func GetUsername(c *gin.Context) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeptName ¶
func GetRoleName ¶
func GetUserIdInt64 ¶ added in v1.3.29
GetUserIdInt64 获得int64的userId
func GetUserIdStr ¶
func GetUsername ¶ added in v1.4.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.