实现角色接口增删改查
This commit is contained in:
@ -41,7 +41,7 @@ func Auth(r *ghttp.Request) {
|
||||
Exit(r, err)
|
||||
}
|
||||
r.SetCtxVar("userId", tokenOut.UserId)
|
||||
r.SetCtxVar("permission", tokenOut.Permission)
|
||||
r.SetCtxVar("role", tokenOut.Role)
|
||||
r.SetCtxVar("jti", tokenOut.JTI)
|
||||
}
|
||||
r.Middleware.Next()
|
||||
|
||||
Reference in New Issue
Block a user