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