fruitslot.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package model
  2. // TFruitBaseConfig [...]
  3. type TFruitBaseConfig struct {
  4. Type string `db:"type" json:"type"` // 配置类型
  5. Config string `db:"config" json:"config"` // 配置内容
  6. }
  7. // TableName get sql table name.获取数据库表名
  8. func (TFruitBaseConfig) TableName() string {
  9. return "crazygod_api_config.t_fruit_base_config"
  10. }
  11. type FruitSlotBasicConf struct {
  12. OpenLv int64 `json:"openLv"`
  13. Resource string `json:"resource"`
  14. }
  15. type FruitSlotWeight struct {
  16. Id int64 `json:"id"`
  17. Type int64 `json:"type"`
  18. Weight int64 `json:"weight"`
  19. Bet int64 `json:"bet"`
  20. Ext []PropPrize `json:"ext"`
  21. }
  22. type FruitSlotWeightUpdate struct {
  23. Type string `json:"type"`
  24. Conf []FruitSlotWeight `json:"conf"`
  25. }
  26. type FruitSlotGoodsConf struct {
  27. Gid int64 `json:"gid"`
  28. Gtype int64 `json:"gtype"`
  29. Sku string `json:"sku"`
  30. Price float64 `json:"price"`
  31. Bet int64 `json:"bet"`
  32. }
  33. type FruitSlotBaseCoin struct {
  34. Lv int64 `json:"lv"`
  35. Coins int64 `json:"coins"`
  36. }
  37. type FruitSlotBaseCoinShow struct {
  38. LvRange
  39. Coins int64 `json:"coins"`
  40. }