retusn del nil
This commit is contained in:
@@ -13,12 +13,19 @@ type JwtInfo struct {
|
||||
LastTime utils.CustomTime `gorm:"column:last_time;type:datetime;comment:最后一次登录时间" json:"last_time"`
|
||||
Time int `json:"time"`
|
||||
Roles []JwtInfoServices `json:"roles"`
|
||||
Refresh string `json:"refresh"`
|
||||
}
|
||||
|
||||
type JwtOutInfo struct {
|
||||
Avatar string `json:"avatar"`
|
||||
Name string `json:"name"`
|
||||
Phone string `json:"phone"`
|
||||
Email string `json:"email"`
|
||||
}
|
||||
type Token struct {
|
||||
Token string `json:"token"`
|
||||
Refresh string `json:"refresh"`
|
||||
Info JwtInfo `json:"info"`
|
||||
Token string `json:"token"`
|
||||
Refresh string `json:"refresh"`
|
||||
Info JwtOutInfo `json:"info"`
|
||||
}
|
||||
|
||||
type JwtInfoServices struct {
|
||||
|
||||
Reference in New Issue
Block a user