🎨 优化文章和讲师接口

This commit is contained in:
2025-09-17 12:09:18 +08:00
parent 914513b5da
commit 9070e40f5c
5 changed files with 89 additions and 15 deletions

View File

@@ -10,6 +10,7 @@ type TeacherVip struct {
Avatar string `json:"avatar" gorm:"comment:讲师头像"`
Price float64 `json:"price" gorm:"comment:VIP价格(单位为分)"`
Desc string `json:"desc" gorm:"comment:VIP描述;type:longtext"`
CategoryId uint `json:"category_id" gorm:"comment:分类ID;"`
}
func (TeacherVip) TableName() string {