🎨 优化鉴权中间件
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package vo
|
||||
|
||||
import "git.echol.cn/loser/lckt/model/app"
|
||||
|
||||
type UserInfo struct {
|
||||
ID uint `json:"id" form:"id"`
|
||||
NickName string `json:"nick_name" form:"nick_name"`
|
||||
@@ -30,3 +32,11 @@ type TeacherVipInfo struct {
|
||||
Title string `json:"title" form:"title"`
|
||||
ExpireAt string `json:"expire_at" form:"expire_at"`
|
||||
}
|
||||
|
||||
type TeacherVipList struct {
|
||||
app.TeacherVip
|
||||
IsBuy int `json:"is_buy" form:"is_buy"` //是否购买 0 否 1 是
|
||||
ExpireAt string `json:"expire_at" form:"expire_at"`
|
||||
//是否过期
|
||||
IsExpire int `json:"is_expire" form:"is_expire"` //是否过期 1 未过期 2 已过期
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ type BaseClaims struct {
|
||||
NickName string `json:"nickName"`
|
||||
ID uint `json:"id"`
|
||||
Phone string `json:"phone"`
|
||||
Status int8 `json:"status"`
|
||||
}
|
||||
|
||||
type CustomClaims struct {
|
||||
|
||||
Reference in New Issue
Block a user