golang 的 rabbitmq 消费项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

166 lines
6.5 KiB

  1. package md
  2. import (
  3. model2 "applet/app/db/model"
  4. "applet/app/lib/plan"
  5. )
  6. const UserWithdrawApplyExchange = "zhios.app.user.withdraw.apply.exchange"
  7. const DouShenUserRegisterExchange = "zhios.doushen.user.register.exchange"
  8. const FastReturnOrder = "zhios.order.fast.return.exchange"
  9. const RechargeOrder = "zhios.recharge.order.exchange"
  10. const Acquisition = "zhios.acquisition.exchange"
  11. const UserUpLv = "zhios.user_up_lv.exchange"
  12. const GuideStoreOrder = "zhios.guide_store.exchange"
  13. const OrderFree = "zhios.order_free.exchange"
  14. const UserValid = "zhios.user_valid.exchange"
  15. const OrderBuckle = "zhios.order_buckle.exchange"
  16. const OrderSettleTotal = "zhios.order_settle_total.exchange"
  17. const OrderTotal = "zhios.order_total.exchange"
  18. const UserRelate = "zhios.user_relate.exchange"
  19. const GuideOrderTrackUpdate = "zhios.order_track_update.exchange"
  20. const (
  21. UserRelateParam = "user_relate"
  22. DouShenUserRegisterRoutKeyForOfficial = "official" // 官方
  23. DouShenUserRegisterRoutKeyForOperationCenter = "operation_center" // 运营中心
  24. DouShenUserRegisterRoutKeyForMyRecommender = "my_recommender" // 我的推荐人
  25. DouShenUserRegisterRoutKeyForMyFans = "my_fans" // 我的粉丝
  26. DouShenUserRegisterRoutKeyForUserRegisterCommUpLv = "user_register_comm_up_lv" // 用户注册自动升级(给推荐人)
  27. FastReturnOrderRoutKeyForOrderPay = "order_pay"
  28. FastReturnOrderRoutKeyForOrderRefund = "order_refund"
  29. FastReturnOrderRoutKeyForOrderRefundSecond = "order_refund_second"
  30. FastReturnOrderRoutKeyForOrderSuccess = "order_success"
  31. RechargeOrderRoutKeyForOrderFail = "order_fail"
  32. RechargeOrderRoutKeyForOrderFailDev = "order_fail_dev"
  33. AcquisitionRoutKeyForCondition = "condition"
  34. AcquisitionRoutKeyForUserValid = "user_valid"
  35. AcquisitionRoutKeyForUserValidDev = "user_valid_dev"
  36. AcquisitionRoutKeyForConditionDev = "acq_dev"
  37. GuideStoreRoutKeyForOrder = "guide_store_order"
  38. GuideStoreRoutKeyForOrderDev = "guide_store_order_dev"
  39. OrderBuckleRoutKeyForOrderDev = "order_buckle_dev"
  40. OrderBuckleRoutKeyForOrder = "order_buckle"
  41. OrderSettleTotalRoutKeyForOrder = "order_settle_total"
  42. OrderTotalRoutKeyForOrder = "order_total"
  43. OrderFreeRoutKeyForOrder = "order_free"
  44. OrderFreeRoutKeyForOrderdev = "order_free_dev"
  45. OrderTotalSecondRoutKeyForOrder = "order_total_second"
  46. UserUpLvRoutKey = "user_up_lv"
  47. OrderHjyRoutKeyForOrder = "order_hjy"
  48. GuideOrderTrackUpdateRoutKeyForTb = "tb"
  49. )
  50. const OrderHjy = "zhios.order_hjy.exchange"
  51. type ZhiosGuideStoreOrder struct {
  52. Uid string `json:"uid"`
  53. Mid string `json:"mid"`
  54. Oid string `json:"oid"`
  55. StoreId string `json:"store_id"`
  56. DeductPrice string `json:"deduct_price"`
  57. ItemTitle string `json:"item_title"`
  58. Pvd string `json:"pvd"`
  59. SubsidyPrice string `json:"subsidy_price"`
  60. Fee string `json:"fee"`
  61. State string `json:"state"`
  62. Type string `json:"type"`
  63. ItemId string `json:"item_id"`
  64. }
  65. type ZhiosOrderFree struct {
  66. ItemId string `json:"item_id"`
  67. SkuId string `json:"sku_id"`
  68. OptPvd string `json:"opt_pvd"`
  69. OrderType string `json:"order_type"`
  70. Pid string `json:"pid"`
  71. Oid string `json:"oid"`
  72. Uid string `json:"uid"`
  73. Mid string `json:"mid"`
  74. }
  75. type DouShenUserRegisterMessageStructForOfficial struct {
  76. MasterId string `json:"master_id"`
  77. Phone int64 `json:"phone"`
  78. Uid int64 `json:"uid"`
  79. }
  80. type DouShenUserRegisterMessageStructForMyFans struct {
  81. MasterId string `json:"master_id"`
  82. Phone int64 `json:"phone"`
  83. Uid int64 `json:"uid"`
  84. }
  85. type DouShenUserRegisterMessageStructForMyRecommender struct {
  86. MasterId string `json:"master_id"`
  87. Phone int64 `json:"phone"`
  88. Uid int64 `json:"uid"`
  89. RecommenderUid int64 `json:"recommender_uid"`
  90. RecommenderPhone string `json:"recommender_phone"`
  91. }
  92. type DouShenUserRegisterMessageStructForOperationCenter struct {
  93. MasterId string `json:"master_id"`
  94. Phone int64 `json:"phone"`
  95. Uid int64 `json:"uid"`
  96. OperationCenterUid int64 `json:"operation_center_uid"`
  97. OperationCenterPhone string `json:"operation_center_phone"`
  98. }
  99. type DouShenUserRegisterMessageStructForCommUpLv struct {
  100. MasterId string `json:"master_id"`
  101. Uid int64 `json:"uid"`
  102. }
  103. type ZhiosFatReturnOrderPay struct {
  104. Uid string `json:"uid"`
  105. Mid string `json:"mid"`
  106. Oid string `json:"oid"`
  107. Name string `json:"name"`
  108. Prd string `json:"prd"`
  109. Amount int `json:"amount"`
  110. }
  111. type ZhiosRechargeOrderPay struct {
  112. Uid string `json:"uid"`
  113. Mid string `json:"mid"`
  114. Oid string `json:"oid"`
  115. WxappletFilepathUrl string `json:"wxapplet_filepath_url"`
  116. DomainUrl string `json:"domain_url"`
  117. }
  118. type ZhiosAcquisition struct {
  119. Uid string `json:"uid"`
  120. Id string `json:"id"`
  121. Mid string `json:"mid"`
  122. }
  123. type ZhiosOrderBuckle struct {
  124. Oid string `json:"oid"`
  125. Mid string `json:"mid"`
  126. Uid string `json:"uid"`
  127. }
  128. type ZhiosOrderTrackUpdateRoutKeyForTb struct {
  129. Pvd string `json:"pvd"`
  130. OrderData *[]OrderInfo `json:"order_data"`
  131. Opts map[string]*plan.PlanOpt `json:"opts"`
  132. SecondOpts map[string]*plan.PlanOpt `json:"second_opts"`
  133. DbName string `json:"db_name"`
  134. }
  135. type ZhiosOrderTrackCreateRoutKeyForTb struct {
  136. Pvd string `json:"pvd"`
  137. OrderData *[]OrderInfo `json:"order_data"`
  138. Opts map[string]*plan.PlanOpt `json:"opts"`
  139. SecondOpts map[string]*plan.PlanOpt `json:"second_opts"`
  140. DbName string `json:"db_name"`
  141. }
  142. type ZhiosOrderTrackRefundRoutKeyForTbPart struct {
  143. PidToUser map[string]*UserPid `json:"pid_to_user"`
  144. NewOrds map[string]OrderInfo `json:"new_ords"`
  145. Opts map[string]*plan.PlanOpt `json:"opts"`
  146. DbName string `json:"db_name"`
  147. Ord model2.OrdList `json:"ord"`
  148. }
  149. type ZhiosOrderTrackRefundRoutKeyForTbAll struct {
  150. ReturnMoneyType string `json:"return_money_type"`
  151. DbName string `json:"db_name"`
  152. Ord model2.OrdList `json:"ord"`
  153. }