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.
 
 
 

119 lines
4.3 KiB

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