funcode.go 6.2 KB

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