This commit is contained in:
yanweidong 2024-06-28 11:29:46 +08:00
parent 31c602dcc5
commit 28ad46d403
2 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ func GenerateTokenAes(id uint, identity, client, role string, owner any, extend
claims := types.JwtClaims{
ID: id,
Identity: identity,
Client: client,
Extend: extend,
Owner: owner,
Role: role,

View File

@ -9,6 +9,7 @@ type JwtClaims struct {
ID uint `json:"id"`
Identity string `json:"identity"`
Extend map[string]string `json:"extend"`
Client string `json:"client"`
Owner any `json:"owner"`
Role string `json:"role"`
ExpiresAt int64 `json:"exp"`