funcode.go 7.8 KB

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