v1.1
This commit is contained in:
@@ -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 结构体
|
||||
|
||||
Reference in New Issue
Block a user