golang 的 rabbitmq 消费项目
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

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