social.go 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. package model
  2. type GoBackBasicRepo struct {
  3. GoBackBasic
  4. SendEmailDay string `json:"sendEmailDay"`
  5. }
  6. type GoBackBasicShow struct {
  7. GoBackBasic
  8. SendEmailDay []int64 `json:"sendEmailDay"`
  9. }
  10. type GoBackBasic struct {
  11. Id int64 `json:"id"`
  12. LostTimes int64 `json:"lostTimes"`
  13. MinLv int64 `json:"minLv"`
  14. MaxLv int64 `json:"maxLv"`
  15. MinPay int64 `json:"minPay"`
  16. MaxPay int64 `json:"maxPay"`
  17. Switch int64 `json:"switch"`
  18. }
  19. type GoBackPrizeTime struct {
  20. Start int64 `json:"start"`
  21. End int64 `json:"end"`
  22. Id int64 `json:"id"`
  23. }
  24. // TReturnsRewards [...]
  25. type TReturnsRewards struct {
  26. Id int64 `db:"id" json:"id"`
  27. MinLv int64 `db:"minLv" json:"minLv"` // 最小等级
  28. MaxLv int64 `db:"maxLv" json:"maxLv"` // 最大等级
  29. Rewards []PropPrize `db:"rewards" json:"rewards"` // 奖励
  30. }
  31. // TableName get sql table name.获取数据库表名
  32. func (TReturnsRewards) TableName() string {
  33. return "crazygod_api_config.t_returns_rewards"
  34. }
  35. type GoBackPrizeShow struct {
  36. OpenTime GoBackPrizeTime `json:"openTime"`
  37. Rewards []TReturnsRewards `json:"rewards"`
  38. }
  39. // TInviteRewardConfig [...]
  40. type TInviteRewardConfig struct {
  41. SectionId int64 `db:"section_id" json:"section_id"`
  42. Level int64 `db:"level" json:"level"`
  43. SpinsGuest int64 `db:"spins_guest" json:"spins_guest"`
  44. SpinsFb int64 `db:"spins_fb" json:"spins_fb"`
  45. Sid int64 `db:"sid" json:"sid"`
  46. BindFb int64 `db:"bind_fb" json:"bind_fb"`
  47. }
  48. // TableName get sql table name.获取数据库表名
  49. func (TInviteRewardConfig) TableName() string {
  50. return "crazygod_api_config.t_invite_reward_config"
  51. }
  52. type InviteProgressPrize struct {
  53. Stage int64 `json:"stage"`
  54. Num int64 `json:"num"`
  55. Prize []PropPrize `json:"prize"`
  56. }
  57. type TFriendsProgressRewardConfig struct {
  58. Id int64 `db:"id" json:"id"`
  59. Num int64 `db:"num" json:"num"`
  60. Reward FriendsProgressReward `db:"reward" json:"reward"`
  61. }
  62. // TableName get sql table name.获取数据库表名
  63. func (TFriendsProgressRewardConfig) TableName() string {
  64. return "crazygod_api_config.t_friends_progress_reward_config"
  65. }
  66. type FriendsProgressReward struct {
  67. Props []PropPrize `json:"props"`
  68. }
  69. // TShareBaseConfig [...]
  70. type TShareBaseConfig struct {
  71. Id int64 `db:"id" json:"id"`
  72. MaxTimes int64 `db:"maxTimes" json:"maxTimes"` // 公共分享配置最大次数
  73. Reward int64 `db:"reward" json:"reward"` // 公共分享配置奖励体力值
  74. IntervalTime int64 `db:"intervalTime" json:"intervalTime"` // 公共分享配置间隔时间
  75. Show int64 `db:"show" json:"show"` // 公共分享配置是否展示
  76. }
  77. // TableName get sql table name.获取数据库表名
  78. func (TShareBaseConfig) TableName() string {
  79. return "crazygod_api_config.t_share_base_config"
  80. }
  81. type TShareConf struct {
  82. Key string `db:"key" json:"key"`
  83. Name string `db:"name" json:"name"`
  84. MaxTimes int64 `db:"maxTimes" json:"maxTimes"`
  85. Reward string `db:"reward" json:"reward"`
  86. IntervalTime int64 `db:"intervalTime" json:"intervalTime"`
  87. Show int64 `db:"show" json:"show"`
  88. AbTest string `db:"abTest" json:"abTest"`
  89. ShareType int64 `db:"shareType" json:"shareType"`
  90. ActImg string `db:"actImg" json:"actImg"`
  91. Content map[string]ShareLangContent `db:"content" json:"content"`
  92. Track map[string]ShareTrackConf `db:"track" json:"track"`
  93. }
  94. func (TShareConf) TableName() string {
  95. return "crazygod_api_config.t_share_config3"
  96. }
  97. type TShareShowConf struct {
  98. TShareConf
  99. Track []ShareTrackShowConf `db:"track" json:"track"`
  100. }
  101. type ShareLangContent struct {
  102. Title string `json:"title"`
  103. Desc string `json:"desc"`
  104. }
  105. type ShareTrackConf struct {
  106. D string `json:"d"`
  107. A string `json:"a"`
  108. B string `json:"b"`
  109. }
  110. type ShareTrackShowConf struct {
  111. Lang string `json:"lang"`
  112. ShareTrackConf
  113. }
  114. type FriendGiftBasic struct {
  115. Spins int64 `json:"spins"` // 好友赠送体力
  116. CoinsMaxTimes int64 `json:"coinsMaxTimes"` // 每日好友金币最大领取次数
  117. SpinsMaxTimes int64 `json:"spinsMaxTimes"` // 每日好友体力最大领取次数
  118. }
  119. // TFriendGiftCoins [...]
  120. type TFriendGiftCoins struct {
  121. LevelId int64 `db:"levelId" json:"levelId"`
  122. Coins int64 `db:"coins" json:"coins"`
  123. }
  124. // TableName get sql table name.获取数据库表名
  125. func (TFriendGiftCoins) TableName() string {
  126. return "crazygod_api_config.t_friend_gift_coins"
  127. }
  128. // TShareConfig2 [...]
  129. type TShareConfig2 struct {
  130. Type string `db:"type" json:"type"`
  131. MaxTimes int64 `db:"maxTimes" json:"maxTimes"`
  132. Reward string `db:"reward" json:"reward"`
  133. IntervalTime int64 `db:"intervalTime" json:"intervalTime"`
  134. Show int64 `db:"show" json:"show"`
  135. }
  136. // TableName get sql table name.获取数据库表名
  137. func (TShareConfig2) TableName() string {
  138. return "crazygod_api_config.t_share_config2"
  139. }