🎨 优化鉴权中间件

This commit is contained in:
2025-10-11 16:16:24 +08:00
parent 86c7d443cb
commit ed962c26b9
4 changed files with 33 additions and 2 deletions

View File

@@ -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 已过期
}

View File

@@ -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 {