实现角色接口增删改查

This commit is contained in:
2025-06-03 16:04:00 +08:00
parent bcd274c750
commit fedcd288e8
35 changed files with 596 additions and 57 deletions

View File

@ -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()