index.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. ***************** 管理端接口 *******************
  3. */
  4. import {protoMiddleware, protoMiddleware_manager} from "@/services/socket/protobuf/buildReq";
  5. import {
  6. GoodsPickupConfirmReq, GoodsPickupConfirmRsp,
  7. GoodsPickupOperateReq, GoodsPickupOperateRsp, QHJAgreementConfigOperateReq, QHJAgreementConfigOperateRsp,
  8. t2bExchConfirmBusinessReq,
  9. t2bExchConfirmBusinessRsp
  10. } from "@/services/proto/manager/interface";
  11. import {IMessageHead} from "@/services/socket/protobuf/proto";
  12. /**
  13. * 交易所审核结果通知请求
  14. * @param param
  15. */
  16. export const t2bExchConfirmBusiness = (param: t2bExchConfirmBusinessReq): Promise<t2bExchConfirmBusinessRsp> => {
  17. return protoMiddleware<t2bExchConfirmBusinessReq>(param, 't2bExchConfirmBusinessReq', 't2bExchConfirmBusinessRsp', 2)
  18. }
  19. /**
  20. * 提货相关操作接口 // (提货单操作请求)
  21. * @param param
  22. */
  23. export const goodsPickupOperate = (param: GoodsPickupOperateReq): Promise<GoodsPickupOperateRsp> => {
  24. return protoMiddleware<GoodsPickupOperateReq>(param, 'GoodsPickupOperateReq', 'GoodsPickupOperateRsp', 2)
  25. }
  26. /**
  27. * 商品提货确认请求 // (完成备货功能)
  28. * @param param MarketID市场id
  29. */
  30. export const goodsPickupConfirm = (param: GoodsPickupConfirmReq): Promise<GoodsPickupConfirmRsp> => {
  31. var marketid = param.MarketID
  32. delete param.MarketID
  33. return protoMiddleware_manager<GoodsPickupConfirmReq>(param, 'GoodsPickupConfirmReq', 'GoodsPickupConfirmRsp', {MarketID: marketid})
  34. // return protoMiddleware<GoodsPickupConfirmReq>(param, 'GoodsPickupConfirmReq', 'GoodsPickupConfirmRsp', 4)
  35. }
  36. /**
  37. * 协议操作
  38. * @param param
  39. */
  40. export const agreementConfigOperate = (param: QHJAgreementConfigOperateReq): Promise<QHJAgreementConfigOperateRsp> => {
  41. return protoMiddleware<QHJAgreementConfigOperateReq>(param, 'QHJAgreementConfigOperateReq', 'QHJAgreementConfigOperateRsp', 2)
  42. }