🎨 新增批量修改包月服务价格功能&新增讲师管理相关功能
This commit is contained in:
@@ -110,3 +110,21 @@ func (a *TeacherVip) GetTeacherVip(context *gin.Context) {
|
||||
}
|
||||
r.OkWithDetailed(vip, "获取讲师VIP成功", context)
|
||||
}
|
||||
|
||||
// UpdatePriceBatch 批量更新价格
|
||||
func (a *TeacherVip) UpdatePriceBatch(context *gin.Context) {
|
||||
var p request.UpdateTeacherVipPriceBatch
|
||||
if err := context.ShouldBind(&p); err != nil {
|
||||
global.GVA_LOG.Error("参数错误,批量更新价格失败", zap.Error(err))
|
||||
r.FailWithMessage("参数错误,批量更新价格失败", context)
|
||||
return
|
||||
}
|
||||
|
||||
err := teacherVipService.UpdatePriceBatch(p)
|
||||
if err != nil {
|
||||
r.FailWithMessage("批量更新价格失败", context)
|
||||
return
|
||||
}
|
||||
|
||||
r.OkWithMessage("批量更新价格成功", context)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user