feat: 添加用户的role信息
This commit is contained in:
@@ -36,6 +36,7 @@ type JWT struct {
|
||||
type CustomClaims struct {
|
||||
UserID string `json:"user_id"`
|
||||
UserName string `json:"user_name"`
|
||||
Role int `json:"role"`
|
||||
Data map[string]interface{} `json:"data,omitempty"`
|
||||
jwt.RegisteredClaims
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user