golang 的 rabbitmq 消费项目
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

md.go 4.0 KiB

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