소스 검색

commit 履约相关接口

yu jie 4 년 전
부모
커밋
dade7b3fe3
4개의 변경된 파일175개의 추가작업 그리고 0개의 파일을 삭제
  1. 64 0
      public/proto/mtp.proto
  2. 11 0
      src/services/funcode/index.ts
  3. 42 0
      src/services/proto/performance/index.ts
  4. 58 0
      src/services/proto/performance/interface.ts

+ 64 - 0
public/proto/mtp.proto

@@ -1649,4 +1649,68 @@ message WRListingCancelOrderRsp {
  optional string OrderTime = 9; // string 接受撤单的时间
  optional string ClientSerialNo = 10; // string 客户端流水号
 }
+// 违约申请请求 0 20 9
+message PerformanceContractedApplyReq {
+	optional MessageHead Header = 1; // MessageHead
+	optional uint64 PerformancePlanID = 2; // uint64 履约计划ID
+	optional uint32 BreachType = 3; // uint32 违约方类型
+	optional uint64 Applicant = 4; // uint64 违约申请人
+	optional string ApplyRemark = 5; // string 申请备注
+	optional string Attachment = 6; // string 附件
+}
+// 违约申请应答 0 20 10
+message PerformanceContractedApplyRsp {
+	optional MessageHead Header = 1; // MessageHead 消息头
+	optional int32 RetCode = 2; // int32 返回码
+	optional string RetDesc = 3; // string 描述信息
+	optional uint64 PerformancePlanID = 4; // uint64 履约计划ID
+}
+// 延期申请请求 0 20 5
+message PerformanceDelayApplyReq {
+	optional MessageHead Header = 1; // MessageHead
+	optional uint64 PerformancePlanStepID = 2; // uint64 履约计划步骤ID
+	optional uint32 delaydays = 3; // uint32 申请延期天数
+	optional uint64 applicant = 4; // uint64 申请人
+	optional string applyremark = 5; // string 申请备注
+}
+// 延期申请应答 0 20 6
+message PerformanceDelayApplyRsp {
+	optional MessageHead Header = 1; // MessageHead 消息头
+	optional int32 RetCode = 2; // int32 返回码
+	optional string RetDesc = 3; // string 描述信息
+	optional uint64 PerformancePlanStepID = 4; // uint64 履约计划步骤ID
+	optional uint64 applicant = 5; // uint64 申请人
+}
+// 履约手动确认请求 0 20 3
+message PerformanceManualConfirmReq {
+	optional MessageHead Header = 1; // MessageHead
+	optional uint64 PerformancePlanStepID = 2; // uint64 履约计划步骤ID
+	optional double OverShortAmount = 3; // double 溢短金额
+	optional uint32 PerformanceExecuteSide = 4; // uint32 履约步骤执行方 1买方 2 卖方
+	optional string StepRemark = 5; // string 步骤备注
+	optional double OverShortQty = 6; // double 溢短数量
+	optional double ExpressFee = 7; // double 运费金额
+}
+// 履约手动确认应答 0 20 4
+message PerformanceManualConfirmRsp {
+	optional MessageHead Header = 1; // MessageHead 消息头
+	optional int32 RetCode = 2; // int32 返回码
+	optional string RetDesc = 3; // string 描述信息
+	optional uint64 PerformancePlanStepID = 4; // uint64 履约计划步骤ID
+}
 
+// 履约修改联络信息请求 0 20 15
+message PerformanceModifyContactReq {
+	optional MessageHead Header = 1; // MessageHead
+	optional uint64 PerformancePlanID = 2; // uint64 履约计划ID
+	optional uint64 AccountID = 3; // uint64 账号
+	optional string ContactInfo = 4; // string 联络信息
+}
+// 履约修改联络信息回应 0 20 16
+message PerformanceModifyContactRsp {
+	optional MessageHead Header = 1; // MessageHead 消息头
+	optional int32 RetCode = 2; // int32 返回码
+	optional string RetDesc = 3; // string 描述信息
+	optional uint64 PerformancePlanID = 4; // uint64 履约计划ID
+	optional uint64 AccountID = 5; // uint64 账号
+}

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

@@ -172,4 +172,15 @@ export const funCode: Code = {
     WRListingCancelOrderReq: 1441796, // 挂牌撤单请求
     WRListingCancelOrderRsp: 1441797, // 挂牌撤单应答
 
+    // 履约
+    PerformanceManualConfirmReq: 1310723, // 履约手动确认请求
+    PerformanceManualConfirmRsp: 1310724, // 履约手动确认应答
+    PerformanceDelayApplyReq: 1310725, // 延期申请请求
+    PerformanceDelayApplyRsp: 1310726, // 延期申请应答
+    PerformanceContractedApplyReq: 1310729, // 违约申请请求
+    PerformanceContractedApplyRsp: 1310730, // 违约申请应答
+    PerformancePlanStepProcessedNtf: 131111, // 履约计划步骤处理完成通知
+    PerformanceModifyContactReq: 1310735, // 履约修改联络信息请求
+    PerformanceModifyContactRsp: 1310736, // 履约修改联络信息回应
+
 };

+ 42 - 0
src/services/proto/performance/index.ts

@@ -0,0 +1,42 @@
+/*************     履约相关 proto 接口    ***************/
+
+
+import {protoMiddleware} from "@/services/socket/protobuf/buildReq";
+import {
+    PerformanceContractedApplyReq,
+    PerformanceDelayApplyReq,
+    PerformanceManualConfirmReq, PerformanceModifyContactReq
+} from "@/services/proto/performance/interface";
+import {HeadEnum} from "@/services/socket/protobuf/protoHeader";
+
+/**
+ * 履约手动确认
+ * @param param
+ */
+export const performanceManualConfirm = (param: PerformanceManualConfirmReq): Promise<any> => {
+    return protoMiddleware<PerformanceManualConfirmReq>(param, 'PerformanceManualConfirmReq', 'PerformanceManualConfirmRsp', HeadEnum.tradeMode17)
+}
+
+/**
+ * 延期申请
+ * @param param
+ */
+export const performanceDelayApply = (param: PerformanceDelayApplyReq): Promise<any> => {
+    return protoMiddleware<PerformanceDelayApplyReq>(param, 'PerformanceDelayApplyReq', 'PerformanceDelayApplyRsp', HeadEnum.tradeMode17)
+}
+
+/**
+ * 违约申请
+ * @param param
+ */
+export const performanceContractedApply = (param: PerformanceContractedApplyReq): Promise<any> => {
+    return protoMiddleware<PerformanceContractedApplyReq>(param, 'PerformanceContractedApplyReq', 'PerformanceContractedApplyRsp', HeadEnum.tradeMode17)
+}
+
+/**
+ * 履约修改联络信息
+ * @param param
+ */
+export const performanceModifyContact = (param: PerformanceModifyContactReq): Promise<any> => {
+    return protoMiddleware<PerformanceModifyContactReq>(param, 'PerformanceModifyContactReq', 'PerformanceModifyContactRsp', HeadEnum.tradeMode17)
+}

+ 58 - 0
src/services/proto/performance/interface.ts

@@ -0,0 +1,58 @@
+// 违约申请请求 0 20 9
+export interface PerformanceContractedApplyReq {
+    PerformancePlanID: number // uint64 履约计划ID
+    BreachType: number // uint32 违约方类型
+    Applicant: number // uint64 违约申请人
+    ApplyRemark: string // string 申请备注
+    Attachment: string // string 附件
+}
+// 违约申请应答 0 20 10
+export interface  PerformanceContractedApplyRsp {
+    RetCode: number // int32 返回码
+    RetDesc: string // string 描述信息
+    PerformancePlanID: number // uint64 履约计划ID
+}
+// 延期申请请求 0 20 5
+export interface  PerformanceDelayApplyReq {
+    PerformancePlanStepID: number // uint64 履约计划步骤ID
+    delaydays: number // uint32 申请延期天数
+    applicant: number // uint64 申请人
+    applyremark: string // string 申请备注
+}
+// 延期申请应答 0 20 6
+export interface  PerformanceDelayApplyRsp {
+    RetCode: number // int32 返回码
+    RetDesc: string // string 描述信息
+    PerformancePlanStepID: number // uint64 履约计划步骤ID
+    applicant: number // uint64 申请人
+}
+// 履约手动确认请求 0 20 3
+export interface  PerformanceManualConfirmReq {
+    PerformancePlanStepID: number // uint64 履约计划步骤ID
+    OverShortAmount: number // double 溢短金额
+    PerformanceExecuteSide: number // uint32 履约步骤执行方 1买方 2 卖方
+    StepRemark: string// string 步骤备注
+    OverShortQty: number // double 溢短数量
+    ExpressFee: number // double 运费金额
+}
+// 履约手动确认应答 0 20 4
+export interface  PerformanceManualConfirmRsp {
+    RetCode: number // int32 返回码
+    RetDesc: string // string 描述信息
+    PerformancePlanStepID: number // uint64 履约计划步骤ID
+}
+
+// 履约修改联络信息请求 0 20 15
+export interface PerformanceModifyContactReq {
+    PerformancePlanID: number // uint64 履约计划ID
+    AccountID: number // uint64 账号
+    ContactInfo: string // string 联络信息
+}
+// 履约修改联络信息回应 0 20 16
+export interface PerformanceModifyContactRsp {
+    RetCode: number // int32 返回码
+    RetDesc: string // string 描述信息
+    PerformancePlanID: number // uint64 履约计划ID
+    AccountID: number // uint64 账号
+}
+