github.com/SupenBysz/gf-admin-community@v0.7.4/sys_model/jwt.go (about) 1 package sys_model 2 3 import ( 4 "github.com/golang-jwt/jwt/v4" 5 ) 6 7 type JwtCustomClaims struct { 8 SysUser 9 UnionMainId int64 `json:"unionMainId" dc:"主体id"` 10 ParentId int64 `json:"parentId" dc:"上级主体id"` 11 IsAdmin bool 12 IsSuperAdmin bool 13 jwt.RegisteredClaims 14 }