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.
 
 
 

385 lines
16 KiB

  1. package md
  2. const (
  3. PVD_TB = "taobao"
  4. PVD_TIKTOK = "tikTok"
  5. PVD_ELM = "ele"
  6. PVD_TIKTOKOwn = "tikTokOwn"
  7. PVD_TIKTOKOwnCreate = "tikTokOwnCreate"
  8. PVD_KuaishouOwn = "kuaishouOwn"
  9. PVD_KuaishouOwnCreate = "kuaishouOwnCreate"
  10. PVD_TIKTOKOwnActivity = "tikTokOwnActivity"
  11. PVD_TIKTOKOwnMix = "tikTokOwnMix"
  12. PVD_KUAISHOU = "kuaishou"
  13. PVD_TIKTOKLIVE = "tikTok_live"
  14. PVD_TIKTOKLIFE = "tikTok_life"
  15. PVD_TIKTOKOWNLIVE = "tikTok_live_own"
  16. PVD_KUAISHOULIVE = "kuaishou_live"
  17. PVD_TBBYCREATETIME = "tb_by_create_time"
  18. PVD_TBBYPAY = "tb_by_pay"
  19. PVD_TB12 = "tb12"
  20. PVD_TB13 = "tb13"
  21. PVD_TB14 = "tb14"
  22. PVD_TB3 = "tb3"
  23. PVD_TBBYSETTLE = "tb_by_settle"
  24. PVD_JD = "jd"
  25. PVD_JDOwn = "jd_own"
  26. PVD_JDUNIONOWN = "jd_union_own"
  27. PVD_PDDUNIONOWN = "pdd_union_own"
  28. PVD_WPHUNIONOWN = "vip_union_own"
  29. PVD_JDUNIONOWNUPDATE = "jd_union_own_update"
  30. PVD_SN = "suning"
  31. PVD_VIP = "vip"
  32. PVD_PDD = "pdd"
  33. PVD_PDDBYCREATETIME = "pdd_by_create_time"
  34. PVD_PDDBYSTATUS = "pdd_by_status"
  35. PVD_PDDBYSTATUSSUCCESS = "pdd_by_status_success"
  36. PVD_PDDBYSTATUSFAIL = "pdd_by_status_fail"
  37. PVD_JDBYSTATUS = "jd_by_status"
  38. PVD_JDBYCREATETIME = "jd_by_create_time"
  39. PVD_JDBYSUCCESS = "jd_by_success"
  40. PVD_JDFAILBYCREATETIME = "jd_fail_by_create_time"
  41. PVD_PDDBYAGOTIME = "pdd_by_ago_time"
  42. PVD_KL = "kaola"
  43. PVD_TM = "tmall"
  44. PVD_DTK = "dataoke"
  45. PVD_HDK = "haodanku"
  46. PVD_HDKTB = "haodanku_tb"
  47. PVD_HDKTM = "haodanku_tm"
  48. PVD_JTT = "jingtuitui"
  49. // 特殊活动免单方案
  50. PVD_FREE = "free"
  51. PVD_MEITUAN = "meituan"
  52. PVD_MEITUANLM = "meituan_lm"
  53. PVD_MEITUANLMSTART = "meituan_lm_start"
  54. PVD_MEITUANSTART = "meituan_start"
  55. PVD_STATIONMEITUANLM = "station_meituan_lm"
  56. PVD_STARBUCKS = "starbucks"
  57. PVD_HWMOVIE = "hw_movie"
  58. PVD_MCDONALD = "mcdonald"
  59. PVD_NAYUKI = "nayuki"
  60. PVD_BURGERKING = "burger_king"
  61. PVD_HEYTEA = "heytea"
  62. PVD_PIZZA = "pizza"
  63. PVD_WALLACE = "wallace"
  64. PVD_TOURISM = "tourism"
  65. PVD_NEAR = "near"
  66. PVD_FLOWERCAKE = "flowerCake"
  67. PVD_DELIVERY = "delivery"
  68. PVD_TO_KFC = "to_kfc"
  69. PVD_PAGODA = "pagoda"
  70. PVD_LUCKIN = "luckin"
  71. PVD_OILSTATION = "oil"
  72. PVD_BRIGHTOILSTATION = "bright_oil"
  73. PVD_KFC = "kfc"
  74. PVD_CINEMA = "cinema"
  75. PVD_CREDIT_CARD = "credit_card"
  76. PVD_CARD_REFUND = "card_refund" //权益卡退款
  77. PVD_CARD = "privilege_card" //权益卡
  78. PVD_RECHARGE = "recharge" //权益卡
  79. PVD_LIANLIAN_PAY = "lianlian_pay" //权益卡
  80. PVD_USER_LV_UP = "userlvup" //会员费用
  81. PVD_OPEN_CARD = "privilege_open_card" // 权益卡开卡
  82. PVD_DUOMAI = "duomai" // 多麦
  83. PVD_GUIDE = "GUIDE" //导购
  84. PVD_SELF_MALL = "SELF_MALL" //自营
  85. PVD_O2O = "O2O" //O2O
  86. PVD_REGIONAL_AGENT_PAY = "regional_agent_pay" //O2O
  87. PVD_COMMON = "COMMON" //COMMON
  88. PVD_DIDI_ENERGY = "didi_energy" //滴滴
  89. PVD_T3_CAR = "to_t3car" //滴滴
  90. PVD_DIDI_ONLINE_CAR = "didi_online_car" //滴滴
  91. PVD_KING_FLOWER = "king_flower" //滴滴
  92. PVD_DIDI_FREIGHT = "didi_freight" //滴滴
  93. PVD_DIDI_CHAUFFEUR = "didi_chauffeur" //滴滴
  94. PVD_COUPON_OIL = "OIL" //优惠券赠送加油模块额度
  95. PVD_COUPON_CARD = "CARD" //优惠券赠送权益卡模块额度
  96. PVD_NEW_CINEMA = "new_cinema" //新电影票
  97. PVD_MALL_GOODS_USER_LV = "mall_goods_user_lv" // 自营商品升级礼包订单返佣
  98. PVD_GROUP_BUY = "mall_group_buy" // 拼团未中奖返佣
  99. PVD_MALL_GOODS = "mall_goods" // 自营商品订单返佣
  100. )
  101. var PVD_LIST = map[string]string{
  102. PVD_TB: "淘宝",
  103. PVD_TBBYCREATETIME: "淘宝",
  104. PVD_TBBYPAY: "淘宝",
  105. PVD_TB12: "淘宝",
  106. PVD_TB13: "淘宝",
  107. PVD_TB14: "淘宝",
  108. PVD_TB3: "淘宝",
  109. PVD_TIKTOKOwn: "抖音",
  110. PVD_TIKTOKOwnCreate: "抖音",
  111. PVD_KuaishouOwn: "快手",
  112. PVD_KuaishouOwnCreate: "快手",
  113. PVD_TIKTOKOWNLIVE: "抖音",
  114. PVD_TIKTOKLIFE: "抖音",
  115. PVD_TBBYSETTLE: "淘宝",
  116. PVD_JD: "京东",
  117. PVD_SN: "苏宁",
  118. PVD_VIP: "唯品会",
  119. PVD_PDD: "拼多多",
  120. PVD_JDBYCREATETIME: "京东",
  121. PVD_JDUNIONOWN: "京东",
  122. PVD_JDUNIONOWNUPDATE: "京东",
  123. PVD_JDOwn: "京东",
  124. PVD_JDFAILBYCREATETIME: "京东",
  125. PVD_PDDBYCREATETIME: "拼多多",
  126. PVD_PDDBYAGOTIME: "拼多多",
  127. PVD_KL: "考拉",
  128. PVD_CREDIT_CARD: "信用卡",
  129. PVD_TM: "天猫",
  130. PVD_USER_LV_UP: "会员升级",
  131. PVD_CARD_REFUND: "权益卡退款",
  132. PVD_CARD: "权益卡",
  133. PVD_MEITUAN: "美团",
  134. PVD_OILSTATION: "加油",
  135. PVD_BRIGHTOILSTATION: "加油",
  136. PVD_KFC: "肯德基",
  137. PVD_CINEMA: "电影票",
  138. "ele": "饿了么",
  139. "elmNew": "饿了么",
  140. "user_lv_up": "会员升级",
  141. PVD_GUIDE: "导购", //导购
  142. PVD_SELF_MALL: "自营", //自营
  143. PVD_O2O: "O2O", //O2O
  144. PVD_STARBUCKS: "星巴克",
  145. PVD_MCDONALD: "麦当劳",
  146. PVD_TO_KFC: "肯德基",
  147. PVD_PAGODA: "百果园",
  148. PVD_LUCKIN: "瑞幸咖啡",
  149. PVD_KING_FLOWER: "花小猪",
  150. PVD_DIDI_CHAUFFEUR: "滴滴代驾",
  151. PVD_TIKTOK: "抖音",
  152. "csjp": "抖音",
  153. "csjp_live": "抖音",
  154. PVD_KUAISHOU: "快手",
  155. PVD_TIKTOKLIVE: "抖音直播商品",
  156. PVD_KUAISHOULIVE: "快手直播商品",
  157. }
  158. var PVD_LIST_ICON = map[string]string{
  159. PVD_TB: "provider-square-icon-taobao.png",
  160. PVD_JD: "provider-square-icon-jd.png",
  161. PVD_SN: "provider-square-icon-suning.png",
  162. PVD_VIP: "provider-square-icon-vip.png",
  163. PVD_PDD: "provider-square-icon-pdd.png",
  164. PVD_KL: "provider-square-icon-kaola.png",
  165. PVD_TIKTOK: "provider-square-icon-tikTok.png",
  166. PVD_KUAISHOU: "detail-shop-icon-kuaishou.png",
  167. PVD_MEITUAN: "provider-square-icon-meituan_new.png",
  168. PVD_MEITUANLM: "provider-square-icon-meituan_new.png",
  169. PVD_OILSTATION: "provider-square-icon-oil_new.png",
  170. PVD_BRIGHTOILSTATION: "provider-square-icon-oil_new.png",
  171. PVD_KFC: "provider-square-icon-kfc_new.png",
  172. PVD_CINEMA: "provider-square-icon-cinema_new.png",
  173. "ele": "provider-square-icon-ele.png",
  174. "elmNew": "provider-square-icon-ele.png",
  175. PVD_STARBUCKS: "provider-square-icon-starbucks.png",
  176. PVD_MCDONALD: "provider-square-icon-mcdonald.png",
  177. PVD_TO_KFC: "provider-square-icon-kfc_new.png",
  178. PVD_PAGODA: "provider-square-icon-pagoda1.png",
  179. PVD_LUCKIN: "provider-square-icon-luckin1.png",
  180. PVD_NAYUKI: "provider-square-icon-nayuki.png",
  181. PVD_BURGERKING: "provider-square-icon-burger_king.png",
  182. "express": "provider-square-icon-express.png",
  183. PVD_HEYTEA: "provider-square-icon-heytea.png",
  184. PVD_PIZZA: "provider-square-icon-pizza.png",
  185. PVD_WALLACE: "provider-square-icon-wallace.png",
  186. PVD_TOURISM: "provider-square-icon-tourism.png",
  187. PVD_NEAR: "provider-square-icon-near.png",
  188. PVD_FLOWERCAKE: "provider-square-icon-flowerCake.png",
  189. PVD_DELIVERY: "provider-square-icon-delivery.png",
  190. PVD_DIDI_FREIGHT: "provider-square-icon-didi_freight.png",
  191. PVD_DIDI_ONLINE_CAR: "provider-square-icon-online_car.png",
  192. PVD_DIDI_CHAUFFEUR: "provider-square-icon-didi_chauffeur.png",
  193. }
  194. var ZHIMENG_CFG_LIST = []string{KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_WEB_ID}
  195. var PVD_CFG_LIST = map[string][]string{
  196. PVD_TB: {
  197. "third_taobao_sid",
  198. "third_taobao_web_ak",
  199. "third_taobao_web_sk",
  200. "third_taobao_svc_ak",
  201. "third_taobao_svc_sk",
  202. "third_taobao_svc_sid",
  203. // 推广位
  204. "third_taobao_share_inviter_code",
  205. "third_taobao_share_pid_android",
  206. "third_taobao_share_pid_ios",
  207. "third_taobao_share_pid_web",
  208. // 推广位
  209. "third_taobao_self_inviter_code",
  210. "third_taobao_self_pid_android",
  211. "third_taobao_self_pid_ios",
  212. "third_taobao_self_pid_web",
  213. },
  214. PVD_TBBYCREATETIME: {
  215. "third_taobao_sid",
  216. "third_taobao_web_ak",
  217. "third_taobao_web_sk",
  218. "third_taobao_svc_ak",
  219. "third_taobao_svc_sk",
  220. "third_taobao_svc_sid",
  221. // 推广位
  222. "third_taobao_share_inviter_code",
  223. "third_taobao_share_pid_android",
  224. "third_taobao_share_pid_ios",
  225. "third_taobao_share_pid_web",
  226. // 推广位
  227. "third_taobao_self_inviter_code",
  228. "third_taobao_self_pid_android",
  229. "third_taobao_self_pid_ios",
  230. "third_taobao_self_pid_web",
  231. },
  232. PVD_TBBYPAY: {
  233. "third_taobao_sid",
  234. "third_taobao_web_ak",
  235. "third_taobao_web_sk",
  236. "third_taobao_svc_ak",
  237. "third_taobao_svc_sk",
  238. "third_taobao_svc_sid",
  239. // 推广位
  240. "third_taobao_share_inviter_code",
  241. "third_taobao_share_pid_android",
  242. "third_taobao_share_pid_ios",
  243. "third_taobao_share_pid_web",
  244. // 推广位
  245. "third_taobao_self_inviter_code",
  246. "third_taobao_self_pid_android",
  247. "third_taobao_self_pid_ios",
  248. "third_taobao_self_pid_web",
  249. },
  250. PVD_TB12: {
  251. "third_taobao_sid",
  252. "third_taobao_web_ak",
  253. "third_taobao_web_sk",
  254. "third_taobao_svc_ak",
  255. "third_taobao_svc_sk",
  256. "third_taobao_svc_sid",
  257. // 推广位
  258. "third_taobao_share_inviter_code",
  259. "third_taobao_share_pid_android",
  260. "third_taobao_share_pid_ios",
  261. "third_taobao_share_pid_web",
  262. // 推广位
  263. "third_taobao_self_inviter_code",
  264. "third_taobao_self_pid_android",
  265. "third_taobao_self_pid_ios",
  266. "third_taobao_self_pid_web",
  267. },
  268. PVD_TB13: {
  269. "third_taobao_sid",
  270. "third_taobao_web_ak",
  271. "third_taobao_web_sk",
  272. "third_taobao_svc_ak",
  273. "third_taobao_svc_sk",
  274. "third_taobao_svc_sid",
  275. // 推广位
  276. "third_taobao_share_inviter_code",
  277. "third_taobao_share_pid_android",
  278. "third_taobao_share_pid_ios",
  279. "third_taobao_share_pid_web",
  280. // 推广位
  281. "third_taobao_self_inviter_code",
  282. "third_taobao_self_pid_android",
  283. "third_taobao_self_pid_ios",
  284. "third_taobao_self_pid_web",
  285. },
  286. PVD_TB14: {
  287. "third_taobao_sid",
  288. "third_taobao_web_ak",
  289. "third_taobao_web_sk",
  290. "third_taobao_svc_ak",
  291. "third_taobao_svc_sk",
  292. "third_taobao_svc_sid",
  293. // 推广位
  294. "third_taobao_share_inviter_code",
  295. "third_taobao_share_pid_android",
  296. "third_taobao_share_pid_ios",
  297. "third_taobao_share_pid_web",
  298. // 推广位
  299. "third_taobao_self_inviter_code",
  300. "third_taobao_self_pid_android",
  301. "third_taobao_self_pid_ios",
  302. "third_taobao_self_pid_web",
  303. },
  304. PVD_TB3: {
  305. "third_taobao_sid",
  306. "third_taobao_web_ak",
  307. "third_taobao_web_sk",
  308. "third_taobao_svc_ak",
  309. "third_taobao_svc_sk",
  310. "third_taobao_svc_sid",
  311. // 推广位
  312. "third_taobao_share_inviter_code",
  313. "third_taobao_share_pid_android",
  314. "third_taobao_share_pid_ios",
  315. "third_taobao_share_pid_web",
  316. // 推广位
  317. "third_taobao_self_inviter_code",
  318. "third_taobao_self_pid_android",
  319. "third_taobao_self_pid_ios",
  320. "third_taobao_self_pid_web",
  321. },
  322. PVD_TBBYSETTLE: {
  323. "third_taobao_sid",
  324. "third_taobao_web_ak",
  325. "third_taobao_web_sk",
  326. "third_taobao_svc_ak",
  327. "third_taobao_svc_sk",
  328. "third_taobao_svc_sid",
  329. // 推广位
  330. "third_taobao_share_inviter_code",
  331. "third_taobao_share_pid_android",
  332. "third_taobao_share_pid_ios",
  333. "third_taobao_share_pid_web",
  334. // 推广位
  335. "third_taobao_self_inviter_code",
  336. "third_taobao_self_pid_android",
  337. "third_taobao_self_pid_ios",
  338. "third_taobao_self_pid_web",
  339. },
  340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CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_WEB_ID},
  359. PVD_TIKTOKOWNLIVE: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_WEB_ID},
  360. PVD_KUAISHOULIVE: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_WEB_ID},
  361. PVD_KUAISHOU: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_WEB_ID},
  362. PVD_OILSTATION: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_WEB_ID},
  363. PVD_BRIGHTOILSTATION: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_WEB_ID},
  364. PVD_KFC: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_WEB_ID},
  365. PVD_CINEMA: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_WEB_ID},
  366. }
  367. var MEITUAN_LIST = map[string]string{
  368. "22": "85", //美团联盟优选活动
  369. "23": "105", //美团联盟优选1.99活动
  370. "24": "86", //美团联盟优选秒杀活动
  371. "29": "85", //美团联盟优选新人活动页
  372. "2": "2", //美团联盟外卖活动
  373. "4": "4", //美团联盟闪购活动
  374. "7": "128", //美团联盟酒店活动
  375. "31": "31", //美团联盟外卖-城市活动
  376. "33": "33", //美团联盟美团外卖(新)
  377. }