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