🎨 新增讲师包月功能,优化支付回调
This commit is contained in:
17
model/app/user_teacher_vip.go
Normal file
17
model/app/user_teacher_vip.go
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user