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.
 
 
 

100 line
3.4 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 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. LvRewardList []LvRewardList `json:"lv_reward_list"`
  59. } `json:"reward_rule"`
  60. ExtraRewardSetting struct {
  61. Status string `json:"status"`
  62. RewardStep []struct {
  63. Number string `json:"number"`
  64. Money string `json:"money"`
  65. Lv string `json:"lv"`
  66. } `json:"reward_step"`
  67. } `json:"extra_reward_setting"`
  68. RankRule struct {
  69. Status string `json:"status"`
  70. ActivityCycle string `json:"activity_cycle"`
  71. EndTime string `json:"end_time"`
  72. RankData string `json:"rank_data"`
  73. FirstAwardMoney string `json:"first_award_money"`
  74. SecondAwardMoney string `json:"second_award_money"`
  75. ThirdAwardMoney string `json:"third_award_money"`
  76. FirstAwardExtendCount string `json:"first_award_extend_count"`
  77. SecondAwardExtendCount string `json:"second_award_extend_count"`
  78. ThirdAwardExtendCount string `json:"third_award_extend_count"`
  79. } `json:"rank_rule"`
  80. RankData string `json:"rank_data"`
  81. }
  82. type LvRewardList struct {
  83. Id string `json:"id"`
  84. DirectSuccess string `json:"direct_success"`
  85. IndirectSuccess string `json:"indirect_success"`
  86. Name string `json:"name"`
  87. InvitedReward string `json:"invited_reward"`
  88. DirectSuccessMax string `json:"direct_success_max"`
  89. IndirectSuccessMax string `json:"indirect_success_max"`
  90. InvitedRewardMax string `json:"invited_reward_max"`
  91. }
  92. type User struct {
  93. Info *model.User
  94. Profile *model.UserProfile
  95. }