|
|
@@ -739,3 +739,67 @@ func (a Api) STTDetailAllowDelCheck(ctx context.Context, r *pb.StandardRequest)
|
|
|
rst := a.toWebFunc(rs)
|
|
|
return rst, nil
|
|
|
}
|
|
|
+
|
|
|
+// ----------------------- 商家上下课管理 ---------------------------------------------
|
|
|
+
|
|
|
+// ----------------------- 商家预约管理 ---------------------------------------------
|
|
|
+
|
|
|
+// OrderListQuery 预约记录查询
|
|
|
+func (a Api) OrderListQuery(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Order{}.OrderListQuery(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// OrderAddByManager 管理员预约添加
|
|
|
+func (a Api) OrderAddByManager(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Order{}.OrderAddByManager(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// OrderCancelByManager 管理员预约取消
|
|
|
+func (a Api) OrderCancelByManager(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Order{}.OrderCancelByManager(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// OrderStatistics 商家预约统计
|
|
|
+func (a Api) OrderStatistics(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Order{}.OrderStatistics(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// ClassOrderQuery 可预约课程预约列表查询
|
|
|
+func (a Api) ClassOrderQuery(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Order{}.ClassOrderQuery(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|
|
|
+
|
|
|
+// VipUserOrderQuery 会员预约列表查询
|
|
|
+func (a Api) VipUserOrderQuery(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
|
|
|
+ // 获取token,并验证签名函数
|
|
|
+ token, q, sign := a.webToGoVerify(ctx, r)
|
|
|
+
|
|
|
+ rs := service.Order{}.VipUserOrderQuery(token, q.ShopID, q.JsonStr, sign)
|
|
|
+ rst := a.toWebFunc(rs)
|
|
|
+ return rst, nil
|
|
|
+}
|