🎨 新增批量修改包月服务价格功能&新增讲师管理相关功能
This commit is contained in:
@@ -6,3 +6,8 @@ type GetTeacherVipList struct {
|
||||
common.PageInfo
|
||||
TeacherId uint `json:"teacher_id" form:"teacher_id"` // 讲师ID
|
||||
}
|
||||
|
||||
type UpdateTeacherVipPriceBatch struct {
|
||||
Ids []uint `json:"ids" form:"ids" vd:"@:len($)>0; msg:'请选择要修改的讲师VIP'"`
|
||||
Price float64 `json:"price" form:"price" vd:"@:len($)>0; msg:'请输入讲师VIP价格'"` // 讲师VIP价格
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -22,4 +22,5 @@ type TeacherInfo struct {
|
||||
Avatar string `json:"avatar" form:"avatar"`
|
||||
Des string `json:"des" form:"des"`
|
||||
Follow int64 `json:"follow" form:"follow"` // 粉丝数
|
||||
Weight int `json:"weight" form:"weight"` // 权重
|
||||
}
|
||||
|
||||
@@ -90,3 +90,9 @@ type SetUserVipReq struct {
|
||||
VipExpireTime string `json:"vip_expire_time" form:"vip_expire_time" vd:"@:len($)>0; msg:'会员过期时间不能为空'"`
|
||||
UserLabel int64 `json:"user_label" form:"user_label" vd:"@:len($)>0; msg:'用户标签不能为空'"` // 1 普通用户 2 Vip 3 Svip
|
||||
}
|
||||
|
||||
type SetTeacherInfo struct {
|
||||
Id int `json:"id" form:"id" vd:"@:len($)>0; msg:'用户ID不能为空'"`
|
||||
ExpectRate int `json:"expect_rate" form:"expect_rate"`
|
||||
Weight int `json:"weight" form:"weight" `
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user