Browse Source

x x x x增加线下交收撤销接口

Handy_Cao 2 năm trước cách đây
mục cha
commit
74c1dad6d2
3 tập tin đã thay đổi với 38 bổ sung1 xóa
  1. 2 0
      src/constants/funcode.ts
  2. 17 0
      src/services/api/trade/index.ts
  3. 19 1
      src/types/proto/trade.d.ts

+ 2 - 0
src/constants/funcode.ts

@@ -125,4 +125,6 @@ export enum FunCode {
     MarketOrderDeliveryApplyRsp = 196740, // 按单做市交收申请接口响应
     DeliveryClientOperatorReq = 196743, // 交收终端操作接口请求
     DeliveryClientOperatorRsp = 196744, // 交收终端操作接口响应
+    OfflineDeliveryApplyCancelOrderReq = 196745,    // MAKE_FID(0, 3, 137)  线下交收申请撤销接口请求(196745)
+    OfflineDeliveryApplyCancelOrderRsp = 196746,   // MAKE_FID(0, 3, 138) // 线下交收申请撤销接口响应(196746)
 } 

+ 17 - 0
src/services/api/trade/index.ts

@@ -336,4 +336,21 @@ export function deliveryClientOperator(config: RequestConfig<Partial<Proto.Deliv
         responseCode: 'DeliveryClientOperatorRsp',
         marketId: 52101
     })
+}
+
+/**
+ * 线下交收申请撤销接口
+ */
+export function offlineDeliveryApplyCancelOrder(config: RequestConfig<Partial<Proto.OfflineDeliveryApplyCancelOrderReq>>) {
+    return http.mqRequest<Proto.OfflineDeliveryApplyCancelOrderRsp>({
+        data: {
+            AccountID: accountStore.currentAccountId,
+            ClientSerialNo: v4(),
+            UserID: loginStore.userId,
+            ClientType: ClientType.Web,
+            ...config.data
+        },
+        requestCode: 'OfflineDeliveryApplyCancelOrderReq',
+        responseCode: 'OfflineDeliveryApplyCancelOrderRsp',
+    })
 }

+ 19 - 1
src/types/proto/trade.d.ts

@@ -710,6 +710,24 @@ declare global {
             AccountID?: number; // 交易账号,必填
             ClientSerialNo?: string; // 客户端流水号
         }
-
+        // 线下交收申请撤销接口请求 0 3 137
+        interface OfflineDeliveryApplyCancelOrderReq {
+            Header?: MessageHead; // 消息头
+            UserID?: number; // 用户ID,必填
+            AccountID?: number; // 交易账号,必填
+            DeliveryOrderID?: string; // 交收单号,必填
+            ClientSerialNo?: string; // 客户端流水号
+            ClientType?: number; // 终端类型
+        }
+        // 线下交收申请撤销接口响应 0 3 138
+        interface OfflineDeliveryApplyCancelOrderRsp {
+            Header?: MessageHead; // 消息头
+            RetCode?: number; // 返回码
+            RetDesc?: string; // 描述信息
+            DeliveryOrderID?: number; // 交收单号,必填
+            UserID?: number; // 用户ID,必填
+            AccountID?: number; // 交易账号,必填
+            ClientSerialNo?: string; // 客户端流水号
+        }
     }
 }