index.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. ***************** 管理端接口 *******************
  3. */
  4. import {protoMiddleware} from "@/services/socket/protobuf/buildReq";
  5. import {
  6. GoodsPickupConfirmReq, GoodsPickupConfirmRsp,
  7. GoodsPickupOperateReq, GoodsPickupOperateRsp,
  8. t2bExchConfirmBusinessReq,
  9. t2bExchConfirmBusinessRsp
  10. } from "@/services/proto/manager/interface";
  11. /**
  12. * 交易所审核结果通知请求
  13. * @param param
  14. */
  15. export const t2bExchConfirmBusiness = (param: t2bExchConfirmBusinessReq): Promise<t2bExchConfirmBusinessRsp> => {
  16. return protoMiddleware<t2bExchConfirmBusinessReq>(param, 't2bExchConfirmBusinessReq', 't2bExchConfirmBusinessRsp', 2)
  17. }
  18. /**
  19. * 提货相关操作接口 // (提货单操作请求)
  20. * @param param
  21. */
  22. export const goodsPickupOperate = (param: GoodsPickupOperateReq): Promise<GoodsPickupOperateRsp> => {
  23. return protoMiddleware<GoodsPickupOperateReq>(param, 'GoodsPickupOperateReq', 'GoodsPickupOperateRsp', 2)
  24. }
  25. /**
  26. * 商品提货确认请求 // (完成备货功能)
  27. * @param param
  28. */
  29. export const goodsPickupConfirm = (param: GoodsPickupConfirmReq): Promise<GoodsPickupConfirmRsp> => {
  30. return protoMiddleware<GoodsPickupConfirmReq>(param, 'GoodsPickupConfirmReq', 'GoodsPickupConfirmRsp', 2)
  31. }