|
|
@@ -539,3 +539,203 @@ func (a Api) ClassVipEdit(ctx context.Context, r *pb.StandardRequest) (*pb.Stand
|
|
|
rst := a.toWebFunc(rs)
|
|
|
return rst, nil
|
|
|
}
|
|
|
+
|
|
|
+// SttPlanBasicQuery 商家课程表模板总览查询
|
|
|
+func (a Api) SttPlanBasicQuery(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.SttPlanBasicQuery(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// SttPlanBasicAdd 商家课程表模板总览添加
|
|
|
+func (a Api) SttPlanBasicAdd(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.SttPlanBasicAdd(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// SttPlanBasicEdit 商家课程表模板总览编辑
|
|
|
+func (a Api) SttPlanBasicEdit(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.SttPlanBasicEdit(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// SttPlanBasicShopEdit 商家课程表模板总览所属商家修改
|
|
|
+func (a Api) SttPlanBasicShopEdit(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.SttPlanBasicShopEdit(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// SttPlanBasicStatusEdit 商家课程表模板状态
|
|
|
+func (a Api) SttPlanBasicStatusEdit(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.SttPlanBasicStatusEdit(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// SttPlanBasicPublish 商家课程表模板发布
|
|
|
+func (a Api) SttPlanBasicPublish(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.SttPlanBasicPublish(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// SttPlanPreview 商家课程表模板详情预览
|
|
|
+func (a Api) SttPlanPreview(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.SttPlanPreview(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// SttPlanCopy 商家课程表模板复制
|
|
|
+func (a Api) SttPlanCopy(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.SttPlanCopy(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// SttPlanDetailQuery 商家课程表模板详情查询
|
|
|
+func (a Api) SttPlanDetailQuery(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.SttPlanDetailQuery(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// SttPlanDetailBatchSave 商家课程表模板详情批量保存
|
|
|
+func (a Api) SttPlanDetailBatchSave(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.SttPlanDetailBatchSave(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// STTBasicQuery 商家课程表总览查询
|
|
|
+func (a Api) STTBasicQuery(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.STTBasicQuery(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// STTBasicAdd 商家课程表总览添加
|
|
|
+func (a Api) STTBasicAdd(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.STTBasicAdd(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// STTBasicEdit 商家课程表总览编辑
|
|
|
+func (a Api) STTBasicEdit(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.STTBasicEdit(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// STTBasicStatusEdit 商家课程表总览状态修改
|
|
|
+func (a Api) STTBasicStatusEdit(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.STTBasicStatusEdit(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// STTBasicPreview 商家课程表详情预览
|
|
|
+func (a Api) STTBasicPreview(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.STTBasicPreview(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// STTBasicCopy 商家课程表模板复制
|
|
|
+func (a Api) STTBasicCopy(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.STTBasicCopy(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// STTBasicOfflineEdit 商家课程表上下线状态修改
|
|
|
+func (a Api) STTBasicOfflineEdit(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.STTBasicOfflineEdit(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// STTDetailListQuery 商家课程表详情列表查询
|
|
|
+func (a Api) STTDetailListQuery(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.STTDetailListQuery(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// STTBasicDetailBatchSave 商家课程表详情批量保存
|
|
|
+func (a Api) STTBasicDetailBatchSave(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.STTBasicDetailBatchSave(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// STTDetailAllowDelCheck 商家课程表详情判断是否可删除
|
|
|
+func (a Api) STTDetailAllowDelCheck(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Class{}.STTDetailAllowDelCheck(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|