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

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