funcode.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package global
  2. var (
  3. AccountFundInfoReq = 262150 // 账户资金信息请求
  4. AccountFundInfoRsp = 262151 // 账户资金信息响应
  5. ModifyPwdReq = 65543 // 修改账户密码请求
  6. ModifyPwdRsp = 65544 // 修改账户密码应答
  7. UserReceiveInfoReq = 1900545 // 新增修改收货地址请求
  8. UserReceiveInfoRsp = 1900546 // 新增修改收货地址请求响应
  9. DelUserReceiveInfoReq = 1900547 // 删除收货地址请求
  10. DelUserReceiveInfoRsp = 1900548 // 删除收货地址请求响应
  11. UserReceiveIsDefaultReq = 1900570 // 设置默认收货地址请求
  12. UserReceiveIsDefaultRsp = 1900571 // 设置默认收货地址应答
  13. UserReceiptInfoReq = 1900549 // 新增修改用户发票信息请求
  14. UserReceiptInfoRsp = 1900550 // 新增修改用户发票信息请求响应
  15. DelUserReceiptInfoReq = 1900551 // 删除用户发票信息请求
  16. DelUserReceiptInfoRsp = 1900552 // 删除用户发票信息请求响应
  17. T2bBankSignReq = 589825 // 签约请求
  18. T2bBankSignRsp = 589826 // 签约应答
  19. T2bBankCancelSignReq = 589827 // 解约请求
  20. T2bBankCancelSignRsp = 589828 // 解约应答
  21. T2bBankWithdrawReq = 589837 // 出金请求
  22. T2bBankWithdrawRsp = 589838 // 出金应答
  23. T2bBankDepositReq = 589843 // 入金请求
  24. T2bBankDepositRsp = 589844 // 入金应答
  25. WarehouseApplyReq = 1900685 // 仓库申请请求
  26. WarehouseApplyRsp = 1900686 // 仓库申请应答
  27. PerformanceContractedApplyReq = 1310729 // 违约申请请求
  28. PerformanceContractedApplyRsp = 1310730 // 违约申请应答
  29. PerformanceDelayApplyReq = 1310725 // 延期申请请求
  30. PerformanceDelayApplyRsp = 1310726 // 延期申请应答
  31. PerformanceManualConfirmReq = 1310723 // 履约手动确认请求
  32. PerformanceManualConfirmRsp = 1310724 // 履约手动确认应答
  33. PerformanceModifyContactReq = 1310735 // 履约修改联络信息请求
  34. PerformanceModifyContactRsp = 1310736 // 履约修改联络信息回应
  35. GoodsFavoriteOperateReq = 1441843 // 商品收藏操作接口请求
  36. GoodsFavoriteOperateRsp = 1441844 // 商品收藏操作接口应答
  37. ZSBuyOrderListingReq = 1441837 // 钻石买挂牌接口请求
  38. ZSBuyOrderListingRsp = 1441838 // 钻石买挂牌接口应答
  39. ZSSellOrderListingReq = 1441829 // 钻石卖挂牌接口请求
  40. ZSSellOrderListingRsp = 1441830 // 钻石卖挂牌接口响应
  41. ZSBuyOrderDestingReq = 1441831 // 钻石买摘牌接口请求
  42. ZSBuyOrderDestingRsp = 1441832 // 钻石买摘牌接口响应
  43. ZSSellOrderDestingApplyReq = 1441839 // 钻石卖摘牌申请接口请求
  44. ZSSellOrderDestingApplyRsp = 1441840 // 钻石卖摘牌申请接口响应
  45. ZSSellOrderDestingApplyOperateReq = 1441841 // 钻石卖摘牌申请操作接口请求
  46. ZSSellOrderDestingApplyOperateRsp = 1441842 // 钻石卖摘牌申请操作接口应答
  47. ZSBuyOrderDestingNegPriceReq = 1441833 // 买摘牌询价接口请求
  48. ZSBuyOrderDestingNegPriceRsp = 1441834 // 买摘牌询价接口应答
  49. ZSBuyOrderDestingNegPriceOperateReq = 1441835 // 买摘牌询价操作接口请求
  50. ZSBuyOrderDestingNegPriceOperateRsp = 1441836 // 买摘牌询价操作接口应答
  51. WRListingCancelOrderReq = 1441796 // 挂牌撤单请求
  52. WRListingCancelOrderRsp = 1441797 // 挂牌撤单应答
  53. ReceiptZSOutApplyReq = 1376463 // 钻石出库申请接口请求
  54. ReceiptZSOutApplyRsp = 1376464 // 钻石出库申请接口响应
  55. CJJCMemberOperateReq = 1114117 // 出境检测会员操作请求
  56. CJJCMemberOperateRsp = 1114118 // 出境检测会员操作响应
  57. BSFWMemberOperateReq = 1114119 // 保税服务会员操作请求
  58. BSFWMemberOperateRsp = 1114120 // 保税服务会员操作响应
  59. SpotPresaleListingOrderReq = 1441847 // 铁合金现货预售挂牌接口请求
  60. SpotPresaleListingOrderRsp = 1441848 // 铁合金现货预售挂牌接口应答
  61. THJPurchaseTradeNtf = 1441865 // 铁合金成交通知
  62. PurchaseTransferNtf = 1441846 // 铁合金协议转让通知
  63. WRTradeDealedNtf = 131110 // 仓单贸易成交通知
  64. GZPresaleApplyReq = 1441879 // 广钻预售\申请请求
  65. GZPresaleApplyRsp = 1441880 // 广钻预售申请响应
  66. GZPresaleOrderReq = 1441883 // 广钻预售认购下单请求
  67. GZPresaleOrderRsp = 1441884 // 广钻预售认购下单响应
  68. GZCenterPurchaseApplyReq = 1441887 // 广钻集采申请请求
  69. GZCenterPurchaseApplyRsp = 1441888 // 广钻集采申请响应
  70. GZCenterPurchaseOrderReq = 1441891 // 广钻集采认购下单请求
  71. GZCenterPurchaseOrderRsp = 1441892 // 广钻集采认购下单响应
  72. BSWMSReckonPayReq = 1114135 // WMS结算单支付接口请求
  73. BSWMSReckonPayRsp = 1114136 // WMS结算单支付接口响应
  74. HdWROrderReq = 1441807 // 持仓单挂牌请求
  75. HdWROrderRsp = 1441808 // 持仓单挂牌应答
  76. WROutApplyReq = 1900657 // 仓单出库申请
  77. WROutApplyRsp = 1900658 // 仓单出库申请响应
  78. OrderReq = 196609 // 交易委托请求
  79. OrderRsp = 196610 // 交易委托应答
  80. CancelOrderReq = 196611 // 撤单请求
  81. CancelOrderRsp = 196612 // 撤单应答
  82. )
  83. // 通过请求功能码获取对应主题的方法
  84. func GetTopic(funcode int) string {
  85. for k, v := range M2A_FuncodeTopic {
  86. for _, f := range v {
  87. if f == funcode {
  88. return k
  89. }
  90. }
  91. }
  92. return ""
  93. }