feat: 添加用户的role信息

This commit is contained in:
2026-03-05 16:53:06 +08:00
parent 90cf3990d3
commit 5384dc7cf3
4 changed files with 36 additions and 3 deletions

View File

@@ -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
}