golang 的 rabbitmq 消费项目
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

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