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.
 
 
 

226 lines
8.5 KiB

  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. IsShowFanUserInfo string `json:"is_show_fan_user_info"`
  55. Nickname string `json:"nickname"`
  56. HidOrder bool `json:"hid_order"`
  57. OrdId string `json:"ord_id"`
  58. ProviderOid string `json:"provider_oid"`
  59. ItemId string `json:"item_id"`
  60. ItemNum int `json:"item_num"`
  61. ItemTitle string `json:"item_title"`
  62. ItemPrice string `json:"item_price"`
  63. Provider string `json:"provider"`
  64. PaidPrice string `json:"paid_price"`
  65. OrderType int `json:"order_type"`
  66. PriceType int `json:"price_type"`
  67. SecondPriceType int `json:"second_price_type"`
  68. PriceName string `json:"price_name"`
  69. UserCommissionStr string `json:"user_commission_str"`
  70. UserCommission string `json:"user_commission"`
  71. OldUserCommission string `json:"old_user_commission"`
  72. FreeCommission string `json:"free_commission"`
  73. UnionCommission string `json:"union_commission"`
  74. UserCommissionRate string `json:"user_commission_rate"`
  75. Reason string `json:"reason"`
  76. State int `json:"state"`
  77. OldState int `json:"old_state"`
  78. IsFastSign int `json:"is_fast_sign"`
  79. OrderTypes string `json:"order_types"`
  80. UserAlipayName string `json:"user_alipay_name"`
  81. UserAlipayLogo string `json:"user_alipay_logo"`
  82. CreateAt string `json:"create_at"`
  83. UpdateAt string `json:"update_at"`
  84. ConfirmAt string `json:"confirm_at"`
  85. SettleAt string `json:"settle_at"`
  86. PvdSettleAt string `json:"pvd_settle_at"`
  87. Thumbnail string `json:"thumbnail"`
  88. Info string `json:"info"`
  89. UpgradeInfo string `json:"upgrade_info"`
  90. UpgradeReq string `json:"upgrade_req"`
  91. UpgradeValue string `json:"upgrade_value"`
  92. SettleInfo string `json:"settle_info"`
  93. OrderCompare string `json:"order_compare"`
  94. StationOrdId string `json:"station_ord_id"`
  95. CoinList []CoinList `json:"coin_list"`
  96. ReturnMoney string `json:"return_money"`
  97. OrderDetailViewType string `json:"order_detail_view_type"`
  98. OrderInfoList []InfoDetail `json:"order_info_list"`
  99. StateStr string `json:"state_str"`
  100. AmountText string `json:"amount_text"`
  101. OrdModeType string `json:"ord_mode_type"`
  102. AvatarUrl string `json:"avatar_url"`
  103. UserLevel string `json:"user_level"`
  104. UserLevelName string `json:"user_level_name"`
  105. }
  106. type OrderInfoList struct {
  107. Title string `json:"title"`
  108. Type string `json:"type"`
  109. }
  110. type PrivacyCfg struct {
  111. IsOn string `json:"is_on"`
  112. Nickname string `json:"nickname"`
  113. Phone string `json:"phone"`
  114. GoodsTitle string `json:"goods_title"`
  115. GoodsImage string `json:"goods_image"`
  116. OrderNum string `json:"order_num"`
  117. SelfCommission string `json:"self_commission"`
  118. SonCommission string `json:"son_commission"`
  119. ShowUserInfo string `json:"show_user_info"`
  120. }
  121. type OrderItemList struct {
  122. ItemId string `json:"item_id"`
  123. ItemNum int `json:"item_num"`
  124. Price string `json:"price"`
  125. Commission string `json:"commission"`
  126. CommissionRate string `json:"commission_rate"`
  127. }
  128. type UserPid struct {
  129. Pid string
  130. Uid int
  131. OrderType int
  132. Lv int
  133. NewLv int
  134. OwnbuyReturnType int //0有返利 1没有返利
  135. Pids []string
  136. }
  137. type OrderInfo struct {
  138. UnionId string
  139. Oid int64
  140. PvdOid string
  141. ParentOrdId int64
  142. Pvd string
  143. ItemId string
  144. ItemNum int
  145. ItemPrice float64
  146. ItemTitle string
  147. ItemLink string // 用户ID
  148. Thumbnail string // 缩略图
  149. PaidPrice float64 // 付款总价
  150. OrderType int // 0自购,1分享订单,2新人免单
  151. Pid string // 推广位ID
  152. IsCompare int // 是否比价订单, 只有拼多多和淘宝有
  153. Commission float64 // 总佣金
  154. CommissionRate float64 // 佣金比例
  155. Reason string // 撤单原因
  156. PayTime int64 // 支付时间
  157. StartTime int64 // 下单时间
  158. EndTime int64 // 结束时间
  159. State int // 订单状态, 0已付款,1已收货,2成功,3已结算,4已失效
  160. ConfirmAt int64 //确认收货时间
  161. CheckSuccessAt int64 //审核通过时间
  162. CostPrice float64
  163. Source string //
  164. IsTikTokTeamOrder int
  165. TikTokTeamCommission string
  166. TikTokTeamRealCommission string
  167. OptPvd string
  168. }
  169. type OrderFindRequest struct {
  170. Oid string `json:"oid"`
  171. Uid string `json:"uid"`
  172. }
  173. type CardOrderInfo struct {
  174. ID string `json:"id"`
  175. OrderID string `json:"orderId"`
  176. CreateTime string `json:"create_time"`
  177. UID string `json:"uid"`
  178. Zuid string `json:"zuid"`
  179. Statut string `json:"statut"`
  180. Account string `json:"account"`
  181. BuyNum string `json:"buy_num"`
  182. GID string `json:"g_id"`
  183. SpecID string `json:"spec_id"`
  184. Type string `json:"type"`
  185. Payment string `json:"payment"`
  186. Msg string `json:"msg"`
  187. PayTime string `json:"pay_time"`
  188. LID string `json:"l_id"`
  189. SysOrderID string `json:"sys_orderId"`
  190. Status string `json:"status"`
  191. RechargeStatus string `json:"recharge_status"`
  192. IsToreturn string `json:"is_toreturn"`
  193. CardMsg string `json:"card_msg"`
  194. IsFh string `json:"is_fh"`
  195. Oid string `json:"oid"`
  196. }
  197. type VipOrder struct {
  198. ID string `json:"id"`
  199. ShareAppExtendID string `json:"share_app_extend_id"`
  200. Oid string `json:"oid"`
  201. Gid string `json:"gid"`
  202. Info string `json:"info"`
  203. Commission string `json:"commission"`
  204. CommissionRate string `json:"commission_rate"`
  205. UID string `json:"uid"`
  206. Payment string `json:"payment"`
  207. Status string `json:"status"`
  208. ChannelTag string `json:"channelTag"`
  209. NewCustomer string `json:"newCustomer"`
  210. CreateTime string `json:"create_time"`
  211. SignTime string `json:"sign_time"`
  212. JsTime string `json:"js_time"`
  213. ZmUpdateTime string `json:"zm_update_time"`
  214. StationPid string `json:"station_pid"`
  215. }
  216. // 定制订单列表的站长
  217. const CustomizedOrderListMaster = "[68823769], [22255132]"