config.go 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. package model
  2. // TChestSkinConfig2 [...]
  3. type TChestSkinConfig2 struct {
  4. SkinChestBasic
  5. Reward []ChestReward `db:"reward" json:"reward"`
  6. }
  7. func (TChestSkinConfig2) TableName() string {
  8. return "crazygod_api_config.t_chest_skin_config2"
  9. }
  10. type SkinChestBasic struct {
  11. Id int64 `db:"id" json:"id"`
  12. Name string `db:"name" json:"name"`
  13. StarPro ChestStarPro `db:"starPro" json:"starPro"`
  14. SkinResourceId int64 `db:"skinResourceId" json:"skinResourceId"` // 皮肤资源id
  15. Props []PropPrize `db:"props" json:"props"` // 额外奖励配置
  16. LastRewardPid int64 `db:"lastRewardPid" json:"lastRewardPid"` // 最终大奖类型13随机金卡
  17. }
  18. type ChestReward struct {
  19. PropsId int64 `json:"propsId"`
  20. Num int64 `json:"num,omitempty"`
  21. Pro []ChestRewardProb `json:"pro,omitempty"`
  22. }
  23. type ChestRewardProb struct {
  24. Lv int64 `json:"lv"`
  25. Weight []ChestRewardWeight `json:"weight"`
  26. }
  27. type ChestRewardWeight struct {
  28. Num int64 `json:"num"`
  29. V int64 `json:"v"`
  30. }
  31. type ChestStarPro struct {
  32. Pro []StarProb `json:"pro"`
  33. MaxGoldCard int64 `json:"maxGoldCard"`
  34. MaxBlackGoldCard int64 `json:"maxBlackGoldCard"`
  35. MaxRainbowCard int64 `json:"maxRainbowCard"`
  36. FloorValue int64 `json:"floorValue"`
  37. RainbowCardKValue int64 `json:"rainbowCardKValue"`
  38. BlackGoldCardKValue int64 `json:"blackGoldCardKValue"`
  39. CardType int64 `json:"cardType"`
  40. }
  41. type StarProb struct {
  42. Star int64 `json:"star"`
  43. V int64 `json:"v"`
  44. }
  45. type ChestSkinReward struct {
  46. PropsId int64 `json:"propsIdd"`
  47. Num int64 `json:"num"`
  48. Pro []ChestRewardPro `json:"pro"`
  49. }
  50. type ChestRewardPro struct {
  51. Lv int64 `json:"lv"`
  52. Weight []ChestWeight `json:"weight"`
  53. }
  54. type ChestWeight struct {
  55. Num int64 `json:"num"`
  56. V int64 `json:"v"`
  57. }
  58. // ResGeneralConf 公共配置响应结构体
  59. type ResGeneralConf struct {
  60. NormalProps map[int64]PropsConf `json:"normalProps"`
  61. SimpleProps map[int64]PropsConf `json:"simpleProps"`
  62. SsGroup Options `json:"ssGroup"`
  63. SlotWeightGroup Options `json:"slotWeightGroup"`
  64. VersionList []string `json:"versionList"` // 版本列表
  65. }
  66. type PropsConf struct {
  67. Props
  68. SkinList map[int64]ActSkinInfo `json:"skin_list"` // 在线活动列表
  69. }
  70. type TSsGroup struct {
  71. Id int64 `db:"id" json:"id"`
  72. Name string `db:"name" json:"name"`
  73. }
  74. func (TSsGroup) TableName() string {
  75. return "crazygod_api_config.t_user_group2"
  76. }
  77. // TUserGroup2 [...]
  78. type TUserGroup2 struct {
  79. UserGroupBaseConf
  80. Cid int64 `db:"cid" json:"cid"`
  81. AdTotal int64 `db:"adTotal" json:"adTotal"`
  82. }
  83. // TableName get sql table name.获取数据库表名
  84. func (TUserGroup2) TableName() string {
  85. return "crazygod_api_config.t_user_group2"
  86. }
  87. type UserGroupBaseConf struct {
  88. Id int64 `db:"id" json:"id"`
  89. GroupId int64 `db:"groupId" json:"groupId"`
  90. Name string `db:"name" json:"name"`
  91. Remark string `db:"remark" json:"remark"`
  92. Update int64 `db:"update" json:"update"`
  93. Sort int64 `db:"sort" json:"sort"`
  94. Count int64 `db:"count" json:"count"` // 现有人数
  95. }
  96. type UserSsGroup struct {
  97. UserGroupBaseConf
  98. ShowStatus int64 `json:"showStatus"`
  99. UpdateStatus int64 `json:"updateStatus"`
  100. }
  101. type UserGroupStatus struct {
  102. Id int64 `json:"id" form:"id"`
  103. Status int64 `json:"status" form:"status"`
  104. }
  105. type TSlotWeightGroup struct {
  106. Id int64 `db:"id" json:"id"`
  107. Name string `db:"name" json:"name"`
  108. }
  109. func (TSlotWeightGroup) TableName() string {
  110. return "crazygod_api_config.t_slot_weight_groups"
  111. }
  112. // TStaticConfig [...]
  113. type TStaticConfig struct {
  114. Config string `db:"config" json:"config"`
  115. Path string `db:"path" json:"path"`
  116. }
  117. // TableName get sql table name.获取数据库表名
  118. func (TStaticConfig) TableName() string {
  119. return "crazygod_api_config.t_static_config"
  120. }
  121. // TBasicConfig [...]
  122. type TBasicConfig struct {
  123. Id int64 `db:"id" json:"id"` // id
  124. ItemTitle
  125. Content string `db:"content" json:"content"` // 值
  126. Memo string `db:"memo" json:"memo"` // 备注
  127. }
  128. // TableName get sql table name.获取数据库表名
  129. func (TBasicConfig) TableName() string {
  130. return "crazygod_api_config.t_basic_config"
  131. }
  132. // TUpLimitConfig [...]
  133. type TUpLimitConfig struct {
  134. Type string `db:"type" json:"type"`
  135. Name string `db:"name" json:"name"`
  136. Data []UpLimitConf `db:"data" json:"data"`
  137. }
  138. type UpLimitConf struct {
  139. LevelId int64 `json:"levelId"`
  140. UpLimit int64 `json:"upLimit"`
  141. }
  142. // TableName get sql table name.获取数据库表名
  143. func (TUpLimitConfig) TableName() string {
  144. return "crazygod_api_config.t_uplimit_config"
  145. }
  146. // CommonConf [...]
  147. type CommonConf struct {
  148. Id int64 `db:"id" json:"id"`
  149. Type string `db:"type" json:"type"` // 类型
  150. Name string `db:"name" json:"name"` // 描述
  151. Conf string `db:"conf" json:"conf"` // 配置
  152. }
  153. // TableName get sql table name.获取数据库表名
  154. func (CommonConf) TableName() string {
  155. return "crazygod_api_config.common_conf"
  156. }
  157. type CommonOtherConf struct {
  158. GuideLastStep GuideLastStep `json:"guideLastStep"`
  159. }
  160. type GuideLastStep struct {
  161. Id int64 `json:"id"`
  162. Conf int64 `json:"conf"`
  163. }
  164. // TSystemConfig [...]
  165. type TSystemConfig struct {
  166. Id int64 `db:"id" json:"id"`
  167. ItemTitle
  168. Content string `db:"content" json:"content"` // 值
  169. Memo string `db:"memo" json:"memo"` // 备注
  170. }
  171. // TableName get sql table name.获取数据库表名
  172. func (TSystemConfig) TableName() string {
  173. return "crazygod_api_config.t_system_config"
  174. }
  175. // TCrazyBetConfig [...]
  176. type TCrazyBetConfig struct {
  177. Id int64 `db:"id" json:"id"`
  178. ActData int64 `db:"actData" json:"actData"`
  179. CrazyBetBaseConf
  180. }
  181. // TableName get sql table name.获取数据库表名
  182. func (TCrazyBetConfig) TableName() string {
  183. return "crazygod_api_config.t_crazy_bet_config"
  184. }
  185. type CrazyBetBaseConf struct {
  186. Bet int64 `db:"bet" json:"bet"`
  187. LevelId int64 `db:"levelId" json:"levelId"`
  188. Spins int64 `db:"spins" json:"spins"`
  189. SpinsLimit int64 `db:"spinsLimit" json:"spinsLimit"` // 倍率关闭的体力上限
  190. }
  191. type SuperCrazyBetConf struct {
  192. BetList []TCrazyBetConfig `json:"betList"`
  193. Limit int64 `json:"limit"`
  194. }
  195. type CrazyBetStatic struct {
  196. NormalConfig []CrazyBetBaseConf `json:"normalConfig"`
  197. SuperBetConfig []CrazyBetBaseConf `json:"superBetConfig"`
  198. ActSpinsLimit int64 `json:"actSpinsLimit"`
  199. }
  200. // TVersionSet [...]
  201. type TVersionSet struct {
  202. Content string `db:"content" json:"content"`
  203. }
  204. // TableName get sql table name.获取数据库表名
  205. func (TVersionSet) TableName() string {
  206. return "crazygod_api_config.t_version_set"
  207. }
  208. type IosVersionConf struct {
  209. OpenOline int64 `json:"openOline" redis:"OPENONLINE"`
  210. OpenOlineVer string `json:"openOlineVer" redis:"OPENONLINE:VER"`
  211. IsOpenMaple int64 `json:"isOpenMaple" redis:"ISOPENMAPLE"`
  212. }
  213. // TLoginBulletBox [...]
  214. type TLoginBulletBox struct {
  215. LoginPopupStatic
  216. Name string `db:"name" json:"name"`
  217. }
  218. // TableName get sql table name.获取数据库表名
  219. func (TLoginBulletBox) TableName() string {
  220. return "crazygod_api_config.t_login_bullet_box"
  221. }
  222. type LoginPopupStatic struct {
  223. Id int64 `db:"id" json:"id"`
  224. Desc string `db:"desc" json:"desc"`
  225. Sort int64 `db:"sort" json:"sort"`
  226. Status int64 `db:"status" json:"status"`
  227. }
  228. type OptionalChestBasic struct {
  229. Id int64 `db:"id" json:"id"`
  230. Title string `db:"title" json:"title"`
  231. }
  232. // TableName get sql table name.获取数据库表名
  233. func (OptionalChestBasic) TableName() string {
  234. return "crazygod_api_config.t_optional_chest_config"
  235. }
  236. // TOptionalChestConfig [...]
  237. type TOptionalChestConfig struct {
  238. OptionalChestBasic
  239. Reward []PropPrize `db:"reward" json:"reward"`
  240. Skin string `db:"skin" json:"skin"`
  241. }