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.

md.go 4.7 KiB

1 year ago
2 weeks ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
5 months ago
4 months ago
3 months ago
7 months ago
1 year ago
1 year ago
9 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
9 months ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. package md
  2. import "applet/app/db/model"
  3. type ZhiosAcquisition struct {
  4. Uid string `json:"uid"`
  5. Mid string `json:"mid"`
  6. Id string `json:"id"`
  7. }
  8. type ZhiosOrderShareMoney struct {
  9. OrdId string `json:"ord_id"`
  10. Mid string `json:"mid"`
  11. PayWay string `json:"pay_way"`
  12. }
  13. type ZhiosTaskReward struct {
  14. CoinId string `json:"coin_id"`
  15. Money string `json:"money"`
  16. Uid string `json:"uid"`
  17. Mid string `json:"mid"`
  18. Reward string `json:"reward"`
  19. CoinIdType string `json:"coin_id_type"`
  20. Mode string `json:"mode"`
  21. Title string `json:"title"`
  22. DeviceModel string `json:"device_model"`
  23. Oid string `json:"oid"`
  24. RewardType string `json:"reward_type"`
  25. PlanType string `json:"plan_type"`
  26. Provider string `json:"provider"`
  27. PvdOid string `json:"pvd_oid"`
  28. IsTeam string `json:"is_team"`
  29. }
  30. type AcquisitionCfg struct {
  31. Id string `json:"id"`
  32. Status string `json:"status"`
  33. Time int `json:"time"`
  34. StartTime string `json:"start_time"`
  35. EndTime string `json:"end_time"`
  36. SuccessConditions struct {
  37. Register struct {
  38. Open string `json:"open"`
  39. } `json:"register"`
  40. TaobaoAuthorization struct {
  41. Open string `json:"open"`
  42. } `json:"taobao_authorization"`
  43. BindPhone struct {
  44. Open string `json:"open"`
  45. } `json:"bind_phone"`
  46. FirstOrder struct {
  47. Open string `json:"open"`
  48. Day string `json:"day"`
  49. Status string `json:"status"`
  50. } `json:"first_order"`
  51. SelfOrder struct {
  52. Open string `json:"open"`
  53. Money string `json:"money"`
  54. } `json:"self_order"`
  55. OrderPay struct {
  56. Open string `json:"open"`
  57. Money string `json:"money"`
  58. } `json:"order_pay"`
  59. OrderStatus struct {
  60. Open string `json:"open"`
  61. Status string `json:"status"`
  62. } `json:"order_status"`
  63. } `json:"success_conditions"`
  64. RewardAccountDay string `json:"reward_account_day"`
  65. AdSetting struct {
  66. Status string `json:"status"`
  67. AdData string `json:"ad_data"`
  68. } `json:"ad_setting"`
  69. RewardRule struct {
  70. DirectTime string `json:"direct_time"`
  71. IndirectTime string `json:"indirect_time"`
  72. DirectSuccess string `json:"direct_success"`
  73. IndirectSuccess string `json:"indirect_success"`
  74. InvitedReward string `json:"invited_reward"`
  75. DirectSuccessMax string `json:"direct_success_max"`
  76. IndirectSuccessMax string `json:"indirect_success_max"`
  77. InvitedRewardMax string `json:"invited_reward_max"`
  78. RewardType string `json:"reward_type"`
  79. RewardCoinId string `json:"reward_coin_id"`
  80. NewRewardCoinId string `json:"new_reward_coin_id"`
  81. LvRewardList []LvRewardList `json:"lv_reward_list"`
  82. } `json:"reward_rule"`
  83. ExtraRewardSetting struct {
  84. Status string `json:"status"`
  85. RewardStep []struct {
  86. Number string `json:"number"`
  87. Money string `json:"money"`
  88. Lv string `json:"lv"`
  89. } `json:"reward_step"`
  90. } `json:"extra_reward_setting"`
  91. RankRule struct {
  92. Status string `json:"status"`
  93. ActivityCycle string `json:"activity_cycle"`
  94. EndTime string `json:"end_time"`
  95. RankData string `json:"rank_data"`
  96. FirstAwardMoney string `json:"first_award_money"`
  97. SecondAwardMoney string `json:"second_award_money"`
  98. ThirdAwardMoney string `json:"third_award_money"`
  99. FirstAwardExtendCount string `json:"first_award_extend_count"`
  100. SecondAwardExtendCount string `json:"second_award_extend_count"`
  101. ThirdAwardExtendCount string `json:"third_award_extend_count"`
  102. } `json:"rank_rule"`
  103. RankData string `json:"rank_data"`
  104. }
  105. type LvRewardList struct {
  106. Id string `json:"id"`
  107. DirectSuccess string `json:"direct_success"`
  108. IndirectSuccess string `json:"indirect_success"`
  109. Name string `json:"name"`
  110. InvitedReward string `json:"invited_reward"`
  111. DirectSuccessMax string `json:"direct_success_max"`
  112. IndirectSuccessMax string `json:"indirect_success_max"`
  113. InvitedRewardMax string `json:"invited_reward_max"`
  114. CoinList []RewardRuleCoinList `json:"coin_list"`
  115. }
  116. type RewardRuleCoinList struct {
  117. CoinId string `json:"coin_id"`
  118. DirectSuccess string `json:"direct_success"`
  119. IndirectSuccess string `json:"indirect_success"`
  120. InvitedReward string `json:"invited_reward"`
  121. DirectSuccessMax string `json:"direct_success_max"`
  122. IndirectSuccessMax string `json:"indirect_success_max"`
  123. InvitedRewardMax string `json:"invited_reward_max"`
  124. }
  125. type User struct {
  126. Info *model.User
  127. Profile *model.UserProfile
  128. }