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.
 
 
 

229 lines
8.6 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. WaitSettleAt int64 // 结束时间
  139. TaskType string
  140. UnionId string
  141. Oid int64
  142. PvdOid string
  143. ParentOrdId int64
  144. Pvd string
  145. ItemId string
  146. SkuId string
  147. ItemNum int
  148. ItemPrice float64
  149. ItemTitle string
  150. ItemLink string // 用户ID
  151. Thumbnail string // 缩略图
  152. PaidPrice float64 // 付款总价
  153. OrderType int // 0自购,1分享订单,2新人免单
  154. Pid string // 推广位ID
  155. IsCompare int // 是否比价订单, 只有拼多多和淘宝有
  156. Commission float64 // 总佣金
  157. CommissionRate float64 // 佣金比例
  158. Reason string // 撤单原因
  159. PayTime int64 // 支付时间
  160. StartTime int64 // 下单时间
  161. EndTime int64 // 结束时间
  162. State int // 订单状态, 0已付款,1已收货,2成功,3已结算,4已失效
  163. ConfirmAt int64 //确认收货时间
  164. CheckSuccessAt int64 //审核通过时间
  165. CostPrice float64
  166. Source string //
  167. IsTikTokTeamOrder int
  168. TikTokTeamCommission string
  169. TikTokTeamRealCommission string
  170. OptPvd string
  171. }
  172. type OrderFindRequest struct {
  173. Oid string `json:"oid"`
  174. Uid string `json:"uid"`
  175. }
  176. type CardOrderInfo struct {
  177. ID string `json:"id"`
  178. OrderID string `json:"orderId"`
  179. CreateTime string `json:"create_time"`
  180. UID string `json:"uid"`
  181. Zuid string `json:"zuid"`
  182. Statut string `json:"statut"`
  183. Account string `json:"account"`
  184. BuyNum string `json:"buy_num"`
  185. GID string `json:"g_id"`
  186. SpecID string `json:"spec_id"`
  187. Type string `json:"type"`
  188. Payment string `json:"payment"`
  189. Msg string `json:"msg"`
  190. PayTime string `json:"pay_time"`
  191. LID string `json:"l_id"`
  192. SysOrderID string `json:"sys_orderId"`
  193. Status string `json:"status"`
  194. RechargeStatus string `json:"recharge_status"`
  195. IsToreturn string `json:"is_toreturn"`
  196. CardMsg string `json:"card_msg"`
  197. IsFh string `json:"is_fh"`
  198. Oid string `json:"oid"`
  199. }
  200. type VipOrder struct {
  201. ID string `json:"id"`
  202. ShareAppExtendID string `json:"share_app_extend_id"`
  203. Oid string `json:"oid"`
  204. Gid string `json:"gid"`
  205. Info string `json:"info"`
  206. Commission string `json:"commission"`
  207. CommissionRate string `json:"commission_rate"`
  208. UID string `json:"uid"`
  209. Payment string `json:"payment"`
  210. Status string `json:"status"`
  211. ChannelTag string `json:"channelTag"`
  212. NewCustomer string `json:"newCustomer"`
  213. CreateTime string `json:"create_time"`
  214. SignTime string `json:"sign_time"`
  215. JsTime string `json:"js_time"`
  216. ZmUpdateTime string `json:"zm_update_time"`
  217. StationPid string `json:"station_pid"`
  218. }
  219. // 定制订单列表的站长
  220. const CustomizedOrderListMaster = "[68823769], [22255132]"