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

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

@@ -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)
}