golang 的 rabbitmq 消费项目
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

11 mesi fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. package md
  2. // 0已付款,1已收货,2成功,3供应商已结算,4已失效,5平台已结算
  3. const (
  4. OrderStatePaid = iota
  5. OrderStateRecv
  6. OrderStateSucc
  7. OrderStatePvdSettle
  8. OrderStateFail
  9. OrderStateSysSettle
  10. )
  11. const (
  12. OrderTypeSelf = iota // 自购订单
  13. OrderTypeShare // 分享订单
  14. OrderTypeFree // 免单订单
  15. OrderTypeActSelf //活动自购订单
  16. OrderTypeWechatActSelf //小程序活动自购订单
  17. OrderTypeWechatActShare //小程序活动分享订单
  18. OrderTypeTljFree //淘礼金免单订单
  19. OrderTypeTljRelationFree //淘礼金渠道免单订单
  20. OrderTypeWechatActSelfNew = iota + 1 //小程序活动自购订单
  21. )
  22. var OrderState = map[int]struct{}{
  23. OrderStatePaid: {},
  24. OrderStateRecv: {},
  25. OrderStateSucc: {},
  26. OrderStatePvdSettle: {},
  27. OrderStateFail: {},
  28. OrderStateSysSettle: {},
  29. }
  30. type OrderDetail struct {
  31. GoodsInfo OrderList `json:"goods_info"`
  32. OrderInfoList []InfoDetail `json:"order_info_list"`
  33. }
  34. type InfoDetail struct {
  35. Title string `json:"title"`
  36. Content string `json:"content"`
  37. Type string `json:"type"`
  38. }
  39. type OrderStates struct {
  40. Name string `json:"name"`
  41. Type string `json:"type"`
  42. }
  43. type OrderStatusNew struct {
  44. Name string `json:"name"`
  45. Type string `json:"type"`
  46. Tips string `json:"tips"`
  47. TipsReplaceKey string `json:"tips_replace_key"`
  48. TipsReplaceColor string `json:"tips_replace_color"`
  49. AmountText string `json:"amount_text"`
  50. IncomeText string `json:"income_text"`
  51. }
  52. type OrderList struct {
  53. Uid int `json:"uid"`
  54. Nickname string `json:"nickname"`
  55. HidOrder bool `json:"hid_order"`
  56. OrdId string `json:"ord_id"`
  57. ProviderOid string `json:"provider_oid"`
  58. ItemId string `json:"item_id"`
  59. ItemNum int `json:"item_num"`
  60. ItemTitle string `json:"item_title"`
  61. ItemPrice string `json:"item_price"`
  62. Provider string `json:"provider"`
  63. PaidPrice string `json:"paid_price"`
  64. OrderType int `json:"order_type"`
  65. PriceType int `json:"price_type"`
  66. PriceName string `json:"price_name"`
  67. UserCommissionStr string `json:"user_commission_str"`
  68. UserCommission string `json:"user_commission"`
  69. OldUserCommission string `json:"old_user_commission"`
  70. FreeCommission string `json:"free_commission"`
  71. UnionCommission string `json:"union_commission"`
  72. UserCommissionRate string `json:"user_commission_rate"`
  73. Reason string `json:"reason"`
  74. State int `json:"state"`
  75. OldState int `json:"old_state"`
  76. IsFastSign int `json:"is_fast_sign"`
  77. OrderTypes string `json:"order_types"`
  78. UserAlipayName string `json:"user_alipay_name"`
  79. UserAlipayLogo string `json:"user_alipay_logo"`
  80. CreateAt string `json:"create_at"`
  81. UpdateAt string `json:"update_at"`
  82. ConfirmAt string `json:"confirm_at"`
  83. SettleAt string `json:"settle_at"`
  84. PvdSettleAt string `json:"pvd_settle_at"`
  85. Thumbnail string `json:"thumbnail"`
  86. Info string `json:"info"`
  87. UpgradeInfo string `json:"upgrade_info"`
  88. UpgradeReq string `json:"upgrade_req"`
  89. UpgradeValue string `json:"upgrade_value"`
  90. SettleInfo string `json:"settle_info"`
  91. OrderCompare string `json:"order_compare"`
  92. StationOrdId string `json:"station_ord_id"`
  93. CoinList []CoinList `json:"coin_list"`
  94. ReturnMoney string `json:"return_money"`
  95. OrderDetailViewType string `json:"order_detail_view_type"`
  96. OrderInfoList []InfoDetail `json:"order_info_list"`
  97. StateStr string `json:"state_str"`
  98. AmountText string `json:"amount_text"`
  99. OrdModeType string `json:"ord_mode_type"`
  100. AvatarUrl string `json:"avatar_url"`
  101. UserLevel string `json:"user_level"`
  102. UserLevelName string `json:"user_level_name"`
  103. }
  104. type CoinList struct {
  105. CoinId string `json:"coin_id"`
  106. CoinName string `json:"coin_name"`
  107. CoinValue string `json:"coin_value"`
  108. CoinBili string `json:"coin_bili"`
  109. }
  110. type OrderInfoList struct {
  111. Title string `json:"title"`
  112. Type string `json:"type"`
  113. }
  114. type CommissionFirstParam struct {
  115. CommissionParam CommissionParam `json:"commission_param"`
  116. Uid string `json:"uid"`
  117. IsShare int `json:"is_share"`
  118. OldLv string `json:"old_lv"` //升级礼包读取的是升级前的等级
  119. NewLv string `json:"new_lv"` //升级礼包读取的是升级后的等级
  120. Provider string `json:"provider"`
  121. IsAllLevelReturn int `json:"is_all_level_return"` // 是否返回所有层级
  122. GoodsId string `json:"goods_id,omitempty"` // 用于标记是哪个商品的
  123. OwnbuyReturnType int `json:"ownbuy_return_type"` //自购是否返利 0返利 1不返利
  124. Oid string `json:"oid"`
  125. ShowLevel string `json:"show_level"`
  126. IsShowExtend string `json:"is_show_extend"`
  127. }
  128. type CommissionParam struct {
  129. GoodsPrice string `json:"goods_price"`
  130. OldPrice string `json:"old_price"`
  131. PaidPrice string `json:"paid_price"`
  132. Commission string `json:"commission"`
  133. CommissionRate string `json:"commission_rate"`
  134. CouponPrice string `json:"coupon_price"`
  135. WlGoodsPrice string `json:"wl_goods_price"` //卷后价
  136. LowerPrice string `json:"lower_price"`
  137. LowestCouponPrice string `json:"lowestCouponPrice"`
  138. MinGroupPrice string `json:"min_group_price"`
  139. TikTokTeamCommission string `json:"tik_tok_team_commission"`
  140. IsTikTokTeamOrder string `json:"is_tik_tok_team_order"`
  141. DouyinBili string `json:"douyin_bili"`
  142. }
  143. type PrivacyCfg struct {
  144. IsOn string `json:"is_on"`
  145. Nickname string `json:"nickname"`
  146. Phone string `json:"phone"`
  147. GoodsTitle string `json:"goods_title"`
  148. GoodsImage string `json:"goods_image"`
  149. OrderNum string `json:"order_num"`
  150. SelfCommission string `json:"self_commission"`
  151. SonCommission string `json:"son_commission"`
  152. }
  153. type OrderItemList struct {
  154. ItemId string `json:"item_id"`
  155. ItemNum int `json:"item_num"`
  156. Price string `json:"price"`
  157. Commission string `json:"commission"`
  158. CommissionRate string `json:"commission_rate"`
  159. }
  160. type UserPid struct {
  161. Pid string
  162. Uid int
  163. OrderType int
  164. Lv int
  165. NewLv int
  166. OwnbuyReturnType int //0有返利 1没有返利
  167. }
  168. type OrderInfo struct {
  169. Oid int64
  170. PvdOid string
  171. ParentOrdId int64
  172. Pvd string
  173. ItemId string
  174. ItemNum int
  175. ItemPrice float64
  176. ItemTitle string
  177. ItemLink string // 用户ID
  178. Thumbnail string // 缩略图
  179. PaidPrice float64 // 付款总价
  180. OrderType int // 0自购,1分享订单,2新人免单
  181. Pid string // 推广位ID
  182. IsCompare int // 是否比价订单, 只有拼多多和淘宝有
  183. Commission float64 // 总佣金
  184. CommissionRate float64 // 佣金比例
  185. Reason string // 撤单原因
  186. PayTime int64 // 支付时间
  187. StartTime int64 // 下单时间
  188. EndTime int64 // 结束时间
  189. State int // 订单状态, 0已付款,1已收货,2成功,3已结算,4已失效
  190. ConfirmAt int64 //确认收货时间
  191. CheckSuccessAt int64 //审核通过时间
  192. CostPrice float64
  193. Source string //
  194. IsTikTokTeamOrder int
  195. TikTokTeamCommission string
  196. TikTokTeamRealCommission string
  197. OptPvd string
  198. }
  199. type OrderFindRequest struct {
  200. Oid string `json:"oid"`
  201. Uid string `json:"uid"`
  202. }
  203. type CardOrderInfo struct {
  204. ID string `json:"id"`
  205. OrderID string `json:"orderId"`
  206. CreateTime string `json:"create_time"`
  207. UID string `json:"uid"`
  208. Zuid string `json:"zuid"`
  209. Statut string `json:"statut"`
  210. Account string `json:"account"`
  211. BuyNum string `json:"buy_num"`
  212. GID string `json:"g_id"`
  213. SpecID string `json:"spec_id"`
  214. Type string `json:"type"`
  215. Payment string `json:"payment"`
  216. Msg string `json:"msg"`
  217. PayTime string `json:"pay_time"`
  218. LID string `json:"l_id"`
  219. SysOrderID string `json:"sys_orderId"`
  220. Status string `json:"status"`
  221. RechargeStatus string `json:"recharge_status"`
  222. IsToreturn string `json:"is_toreturn"`
  223. CardMsg string `json:"card_msg"`
  224. IsFh string `json:"is_fh"`
  225. Oid string `json:"oid"`
  226. }
  227. type VipOrder struct {
  228. ID string `json:"id"`
  229. ShareAppExtendID string `json:"share_app_extend_id"`
  230. Oid string `json:"oid"`
  231. Gid string `json:"gid"`
  232. Info string `json:"info"`
  233. Commission string `json:"commission"`
  234. CommissionRate string `json:"commission_rate"`
  235. UID string `json:"uid"`
  236. Payment string `json:"payment"`
  237. Status string `json:"status"`
  238. ChannelTag string `json:"channelTag"`
  239. NewCustomer string `json:"newCustomer"`
  240. CreateTime string `json:"create_time"`
  241. SignTime string `json:"sign_time"`
  242. JsTime string `json:"js_time"`
  243. ZmUpdateTime string `json:"zm_update_time"`
  244. StationPid string `json:"station_pid"`
  245. }
  246. // 定制订单列表的站长
  247. const CustomizedOrderListMaster = "[68823769], [22255132]"