🎨 优化文章和讲师接口
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -31,6 +31,7 @@ type ArticleVo struct {
|
||||
TeacherAvatar string `json:"teacherAvatar" gorm:"comment:讲师头像"`
|
||||
IsFree int `json:"isFree" gorm:"comment:是否免费;default:0"` // 是否免费 0-否 1-是
|
||||
IsBuy int `json:"isBuy" gorm:"comment:是否购买;default:0"` // 是否购买 0-否 1-是
|
||||
CategoryId uint `json:"categoryId" gorm:"comment:分类ID"`
|
||||
}
|
||||
|
||||
type ArticleTeacherVo struct {
|
||||
|
||||
Reference in New Issue
Block a user