Ver código fonte

commit 更新接口

yu jie 4 anos atrás
pai
commit
14afa4f270

+ 15 - 0
public/proto/mtp.proto

@@ -1807,4 +1807,19 @@ message WROutConfirmRsp {
  optional int32 RetCode = 2; // int32 返回码
  optional string RetDesc = 3; // string 描述信息
   optional uint64 applyid = 4; // uint64 协议ID
+}
+
+// 仓单出库撤回请求 0 29 199
+message WROutCancelReq {
+ optional MessageHead Header = 1; // MessageHead
+ optional uint64 applyid = 2; // uint64 申请Id
+  optional uint32 operatesrc = 3; // uint32 操作来源 - 1:管理端 2:终端
+  optional uint64 operateid = 4; // uint64 操作人
+}
+// 仓单出库撤回响应 0 29 200
+message WROutCancelRsp {
+ optional MessageHead Header = 1; // MessageHead 消息头
+ optional int32 RetCode = 2; // int32 返回码
+ optional string RetDesc = 3; // string 描述信息
+  optional uint64 applyid = 4; // uint64 申请Id
 }

+ 3 - 0
src/services/funcode/index.ts

@@ -178,6 +178,9 @@ export const funCode: Code = {
     WROutConfirmReq: 1900739, // 仓单出库确认请求
     WROutConfirmRsp: 1900740, // 仓单出库确认响应
 
+    WROutCancelReq: 1900743,//  仓单出库撤回请求
+    WROutCancelRsp: 1900744,//  仓单出库撤回响应
+
     // 履约
     PerformanceManualConfirmReq: 1310723, // 履约手动确认请求
     PerformanceManualConfirmRsp: 1310724, // 履约手动确认应答

+ 2 - 0
src/services/go/ermcp/exposure/index.ts

@@ -92,3 +92,5 @@ export function QueryExposureHedgePositionDetail(req: ErmcpHedgePositionDetailRe
         throw new Error(`查询敞口->期货头寸->期货明细: ${err}`);
     });
 }
+
+

+ 10 - 3
src/services/proto/warehousetrade/index.ts

@@ -2,7 +2,7 @@ import {
     HdWRDealOrderReq,
     HdWROrderReq, PaymentArrearsReq, WarehouseRepurchaseReq,
     WRListingCancelOrderReq, WROutApplyCancelReq,
-    WROutApplyReq, WROutConfirmReq, WRTradeFinanceBuyCancelReq
+    WROutApplyReq, WROutCancelReq, WROutConfirmReq, WRTradeFinanceBuyCancelReq
 } from "@/services/proto/warehousetrade/interface";
 import { protoMiddleware } from "@/services/socket/protobuf/buildReq";
 import { HeadEnum } from "@/services/socket/protobuf/protoHeader";
@@ -73,6 +73,7 @@ export const WRTradeFinanceBuyCancel = (param: WRTradeFinanceBuyCancelReq): Prom
 
 /**
  * 仓单出入库注销请求
+ * @deprecated 该接口废弃
  * @param param
  */
 export const WROutApplyCancel = (param: WROutApplyCancelReq): Promise<any> => {
@@ -88,7 +89,13 @@ export const WROutConfirm = (param: WROutConfirmReq): Promise<any> => {
     return protoMiddleware<WROutConfirmReq>(param, 'WROutConfirmReq', 'WROutConfirmRsp', HeadEnum.tradeMode17)
 }
 
-
-
+/**
+ * 仓单出库撤回请求
+ * @param param
+ * @constructor
+ */
+export const WROutCancel = (param: WROutCancelReq): Promise<any> => {
+    return protoMiddleware<WROutCancelReq>(param, 'WROutCancelReq', 'WROutCancelRsp', HeadEnum.tradeMode17)
+}
 
 

+ 13 - 0
src/services/proto/warehousetrade/interface.ts

@@ -239,5 +239,18 @@ export interface WROutConfirmRsp {
     applyid: number // uint64 协议ID
 }
 
+// 仓单出库撤回请求 0 29 199
+export interface WROutCancelReq {
+    applyid: number // uint64 申请Id
+    operatesrc: number // uint32 操作来源 - 1:管理端 2:终端
+    ooperateid: number // uint64 操作人
+}
+// 仓单出库撤回响应 0 29 200
+export interface WROutCancelRsp {
+    RetCode: number // int32 返回码
+    RetDesc: string // string 描述信息
+    applyid: number; // uint64 申请Id
+}
+