user

package
v0.0.0-...-a423676 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT 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

func GetUserIdInt64(c *gin.Context) int64

GetUserIdInt64 获得int64的userId

func GetUserIdStr

func GetUserIdStr(c *gin.Context) string

func GetUserName

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