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.5 KiB

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