user

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractClaims

func ExtractClaims(c *gin.Context) jwt.MapClaims

func Get

func Get(c *gin.Context, key string) interface{}

func GetDeptId

func GetDeptId(c *gin.Context) int

func GetDeptName

func GetDeptName(c *gin.Context) string

func GetRoleId

func GetRoleId(c *gin.Context) int

func GetRoleName

func GetRoleName(c *gin.Context) string

func GetUserId

func GetUserId(c *gin.Context) int

GetUserId 获取一个int的userId

func GetUserIdInt64 added in v1.3.29

func GetUserIdInt64(c *gin.Context) int64

GetUserIdInt64 获得int64的userId

func GetUserIdStr

func GetUserIdStr(c *gin.Context) string

func GetUsername added in v1.4.1

func GetUsername(c *gin.Context) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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