This commit is contained in:
2025-12-09 18:55:28 +08:00
parent 8d00d67540
commit c23ab8338b
209 changed files with 5445 additions and 3963 deletions

View File

@@ -11,13 +11,15 @@ import (
const ExtraKey = "extra"
type JwtClaims struct {
UserId int64 `json:"userId"`
AgentId int64 `json:"agentId"`
UserId string `json:"userId"`
AgentId string `json:"agentId"`
Platform string `json:"platform"`
// 用户身份类型0-临时用户1-正式用户
UserType int64 `json:"userType"`
// 是否代理0-否1-是
IsAgent int64 `json:"isAgent"`
IsAgent int64 `json:"isAgent"`
AuthType string `json:"authType"`
AuthKey string `json:"authKey"`
}
// MapToJwtClaims 将 map[string]interface{} 转换为 JwtClaims 结构体