index.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /************* 履约相关 proto 接口 ***************/
  2. import {protoMiddleware} from "@/services/socket/protobuf/buildReq";
  3. import {
  4. PerformanceActivateReq,
  5. PerformanceContractedApplyReq,
  6. PerformanceDelayApplyReq,
  7. PerformanceManualConfirmReq, PerformanceModifyContactReq
  8. } from "@/services/proto/performance/interface";
  9. import {HeadEnum} from "@/services/socket/protobuf/protoHeader";
  10. /**
  11. * 履约手动确认
  12. * @param param
  13. */
  14. export const performanceManualConfirm = (param: PerformanceManualConfirmReq): Promise<any> => {
  15. return protoMiddleware<PerformanceManualConfirmReq>(param, 'PerformanceManualConfirmReq', 'PerformanceManualConfirmRsp', HeadEnum.tradeMode17)
  16. }
  17. /**
  18. * 延期申请
  19. * @param param
  20. */
  21. export const performanceDelayApply = (param: PerformanceDelayApplyReq): Promise<any> => {
  22. return protoMiddleware<PerformanceDelayApplyReq>(param, 'PerformanceDelayApplyReq', 'PerformanceDelayApplyRsp', HeadEnum.tradeMode17)
  23. }
  24. /**
  25. * 违约申请
  26. * @param param
  27. */
  28. export const performanceContractedApply = (param: PerformanceContractedApplyReq): Promise<any> => {
  29. return protoMiddleware<PerformanceContractedApplyReq>(param, 'PerformanceContractedApplyReq', 'PerformanceContractedApplyRsp', HeadEnum.tradeMode17)
  30. }
  31. /**
  32. * 履约修改联络信息
  33. * @param param
  34. */
  35. export const performanceModifyContact = (param: PerformanceModifyContactReq): Promise<any> => {
  36. return protoMiddleware<PerformanceModifyContactReq>(param, 'PerformanceModifyContactReq', 'PerformanceModifyContactRsp', HeadEnum.tradeMode17)
  37. }
  38. /**
  39. * 履约激活请求
  40. * @param param
  41. */
  42. export const performanceActivate = (param: PerformanceActivateReq):Promise<any> => {
  43. return protoMiddleware<PerformanceActivateReq>(param, 'PerformanceActivateReq', 'PerformanceActivateRsp', HeadEnum.tradeMode17)
  44. }