🎨 新增批量修改包月服务价格功能&新增讲师管理相关功能

This commit is contained in:
2025-09-15 20:26:32 +08:00
parent 19eeb6f0a3
commit 7f066800a8
10 changed files with 110 additions and 12 deletions

View File

@@ -4,12 +4,12 @@ import "git.echol.cn/loser/lckt/global"
type TeacherVip struct {
global.GVA_MODEL
Title string `json:"title" form:"title" gorm:"comment:VIP标题;size:128"`
TeacherId uint `json:"teacher_id" gorm:"comment:讲师ID;"`
TeacherName string `json:"teacher_name" gorm:"comment:讲师名称"` // 讲师名称
Avatar string `json:"avatar" gorm:"comment:讲师头像"`
Price int `json:"price" gorm:"comment:VIP价格(单位为分)"`
Desc string `json:"desc" gorm:"comment:VIP描述;type:longtext"`
Title string `json:"title" form:"title" gorm:"comment:VIP标题;size:128"`
TeacherId uint `json:"teacher_id" gorm:"comment:讲师ID;"`
TeacherName string `json:"teacher_name" gorm:"comment:讲师名称"` // 讲师名称
Avatar string `json:"avatar" gorm:"comment:讲师头像"`
Price float64 `json:"price" gorm:"comment:VIP价格(单位为分)"`
Desc string `json:"desc" gorm:"comment:VIP描述;type:longtext"`
}
func (TeacherVip) TableName() string {