🎨 新增讲师包月功能,优化支付回调

This commit is contained in:
2025-09-07 02:11:22 +08:00
parent 7bcc2370bd
commit df46c7ab29
16 changed files with 508 additions and 43 deletions

View File

@@ -0,0 +1,17 @@
package app
import "git.echol.cn/loser/lckt/global"
type UserTeacherVip struct {
global.GVA_MODEL
UserId uint `gorm:"column:user_id;comment:用户ID;NOT NULL" json:"user_id"`
TeacherId uint `gorm:"column:teacher_id;comment:讲师ID;NOT NULL" json:"teacher_id"`
TeacherVipId uint `gorm:"column:teacher_vip_id;comment:讲师VIP ID;NOT NULL" json:"teacher_vip_id"`
ExpireAt string `gorm:"column:expire_at;comment:到期时间;NOT NULL" json:"expire_at"`
//是否过期
IsExpire int `gorm:"column:is_expire;type:int(11);default:1;comment:是否过期 |1 未过期|2 已过期;NOT NULL" json:"is_expire"`
}
func (UserTeacherVip) TableName() string {
return "user_teacher_vip"
}