123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- package model
- // TSlotWeightGroups [...]
- type TSlotWeightGroups struct {
- Id int64 `db:"id" json:"id"`
- Name string `db:"name" json:"name"`
- Gids string `db:"gids" json:"gids"`
- }
- // TableName get sql table name.获取数据库表名
- func (TSlotWeightGroups) TableName() string {
- return "crazygod_api_config.t_slot_weight_groups"
- }
- type SlotWeightGroups struct {
- Id int64 `json:"id"`
- Name string `json:"name"`
- SsGroup
- }
- // TSlotWeightGroupsConfig [...]
- type TSlotWeightGroupsConfig struct {
- Id int64 `db:"id" json:"id"`
- Gid int64 `db:"gid" json:"gid"`
- LevelId int64 `db:"levelId" json:"levelId"` // 岛id 【每个岛一个配置】
- SlotProb []SlotWeightGroupsProb `db:"slotpro" json:"slotpro"` // 概率 json
- UpdateDesc string `db:"update_desc" json:"update_desc"` // 最后修改者 时间 名字
- }
- // TableName get sql table name.获取数据库表名
- func (TSlotWeightGroupsConfig) TableName() string {
- return "crazygod_api_config.t_slot_weight_groups_config"
- }
- type SlotWeightGroupsProb struct {
- Id int64 `json:"id"`
- Type int64 `json:"type"`
- Prize string `json:"prize"`
- V int64 `json:"v"`
- RewardId int64 `json:"rewardId,omitempty"`
- }
- // TSlotWeightChangeConfig [...]
- type TSlotWeightChangeConfig struct {
- Type string `db:"type" json:"type"` // 类型
- Config string `db:"config" json:"config"` // 配置json
- }
- // TableName get sql table name.获取数据库表名
- func (TSlotWeightChangeConfig) TableName() string {
- return "crazygod_api_config.t_slot_weight_change_config"
- }
- type SlotWeightChangeConf struct {
- BetSpinsRule []SlotBetSpinsRule `json:"betSpinsRule"`
- SlotLimitDay []SlotCoefficient `json:"slotLimitDay"`
- SpinsLost []SlotCoefficient `json:"spinsLost"`
- SpinsLostDay []SlotCoefficient `json:"spinsLostDay"`
- }
- type SlotBetSpinsRule struct {
- Bet int64 `json:"bet"`
- Spins int64 `json:"spins"`
- }
- type SlotCoefficient struct {
- Main float64 `json:"main"`
- Coefficient []string `json:"coefficient"`
- }
- type SlotWeightAmendReq struct {
- Type string `json:"type"`
- Conf string `json:"conf"`
- }
- type SlotProbInterveneConf struct {
- CeProb []SlotCeProbConf `json:"ceProb"`
- LsConf []SlotLsConf `json:"lsConf"`
- }
- type SlotCeProbConf struct {
- Ce int64 `json:"ce"`
- Conf SlotCeProb `json:"conf"`
- }
- type SlotCeProb struct {
- One int64 `json:"one"`
- Two int64 `json:"two"`
- Three int64 `json:"three"`
- OneCoin int64 `json:"oneCoin"`
- }
- type SlotLsConf struct {
- SLv int64 `json:"s_lv"`
- ELv int64 `json:"e_lv"`
- Conf []SlotCeConf `json:"conf"`
- }
- type SlotCeConf struct {
- SSp int64 `json:"s_sp"`
- ESp int64 `json:"e_sp"`
- Ce int64 `json:"ce"`
- }
- type SlotStealResultConf struct {
- StealRetWeight []SlotStealRetWeightConf `json:"stealRetWeight"`
- BoxRetWeight []SlotBoxRetWeightConf `json:"boxRetWeight"`
- BetRetWeight []SlotBetRetWeightConf `json:"betRetWeight"`
- BetBoxRetWeight []SlotBetRetWeightConf `json:"betBoxRetWeight"`
- }
- type SlotStealRetWeightConf struct {
- Id int64 `json:"id"`
- Slv int64 `json:"slv"`
- Elv int64 `json:"elv"`
- Weight SlotStealWeight `json:"weight"`
- }
- type SlotStealWeight struct {
- A float64 `json:"a"`
- B float64 `json:"b"`
- C float64 `json:"c"`
- D float64 `json:"d"`
- }
- type SlotBoxRetWeightConf struct {
- Id int64 `json:"id"`
- Weight SlotStealWeight `json:"weight"`
- }
- type SlotBetRetWeightConf struct {
- Id int64 `json:"id"`
- Bet int64 `json:"bet"`
- Coefficient SlotStealWeight `json:"coefficient"`
- }
- type SlotStealRatioConf struct {
- Id int64 `json:"id"`
- Bet float64 `json:"bet"`
- FWeight int64 `json:"f_weight"`
- Weight int64 `json:"weight"`
- IsRobot int64 `json:"isRobot"`
- }
- type SlotStealFloorConf struct {
- MulSpend []SlotMulSpend `json:"mulSpend"`
- }
- type SlotMulSpend struct {
- Mul int64 `json:"mul"`
- Spend int64 `json:"spend"`
- }
- type SlotStealCoin struct {
- LevelId int64 `json:"levelId"`
- MaxCoin int64 `json:"maxCoin"`
- }
- type SlotStealCoinShow struct {
- LvRange
- MaxCoin int64 `json:"maxCoin"`
- }
- type SlotAttackConf struct {
- RandFriendLimit int64 `json:"rand_friend_limit"`
- FriendWeight int64 `json:"friend_weight"`
- GrowWeight int64 `json:"grow_weight"`
- UserLevel int64 `json:"user_level"`
- RobotShieldWeight int64 `json:"robot_shield_weight"`
- }
- // TAttackCoinConf [...]
- type TAttackCoinConf struct {
- LevelId int64 `db:"levelId" json:"levelId"`
- SlotAttackCoin
- }
- // TableName get sql table name.获取数据库表名
- func (TAttackCoinConf) TableName() string {
- return "crazygod_api_config.t_attack_coin_config"
- }
- type SlotAttackCoinShow struct {
- LvRange
- SlotAttackCoin
- }
- type SlotAttackCoin struct {
- Shield int64 `db:"shield" json:"shield"`
- NoShield int64 `db:"no_shield" json:"no_shield"`
- }
- type SlotSpinsFloorConf struct {
- Rand SlotSpinsFloorRand `json:"rand"`
- SlotStealFloorConf
- }
- type SlotSpinsFloorRand struct {
- Min float64 `json:"min"`
- Max float64 `json:"max"`
- }
- type SlotBankBasicShow struct {
- BasicConf SlotBankBasicConf `json:"basicConf"`
- SkinOptions []Option2 `json:"skinOptions"`
- }
- type SlotBankBasicConf struct {
- IsOpen int64 `json:"isOpen"`
- SpinsPotStartLevel int64 `json:"spinsPotStartLevel"`
- SpinsPotReBuyDay int64 `json:"spinsPotReBuyDay"`
- ShowTimes int64 `json:"showTimes"`
- ResourceDir string `json:"resourceDir"`
- }
- // TSpinsPotBasicConfig [...]
- type TSpinsPotBasicConfig struct {
- LevelId int64 `db:"levelId" json:"levelId"` // 等级ID
- SlotSpinsPotLvRange // 等级范围
- SlotSpinsPotGoodsConf // 商品配置
- }
- // TableName get sql table name.获取数据库表名
- func (TSpinsPotBasicConfig) TableName() string {
- return "crazygod_api_config.t_spins_pot_basic_config"
- }
- type SlotSpinsPotLvRange struct {
- StartLv int64 `db:"startlv" json:"startlv"` // 起始等级
- EndLv int64 `db:"endlv" json:"endlv"` // 结束等级
- }
- type SlotSpinsPotGoodsConf struct {
- FirstCfg SlotSpinsPotGoods `db:"firstcfg" json:"firstcfg"` // 未购买状态
- AgainCfg SlotSpinsPotGoods `db:"againcfg" json:"againcfg"` // 回购状态
- LongTimeCfg SlotSpinsPotGoods `db:"longtimecfg" json:"longtimecfg"` // 回购N天状态
- }
- type SlotSpinsPotGoods struct {
- MaxNum int64 `json:"maxNum"`
- Price float64 `json:"price"`
- Sku string `json:"sku"`
- }
- // TSpinsPotProbabilityConfig [...]
- type TSpinsPotProbabilityConfig struct {
- LevelId int64 `db:"levelId" json:"levelId"` // 等级id
- Config SlotSpinsPotProbConf `db:"config" json:"config"` // 配置信息
- }
- // TableName get sql table name.获取数据库表名
- func (TSpinsPotProbabilityConfig) TableName() string {
- return "crazygod_api_config.t_spins_pot_probability_config"
- }
- type SlotSpinsPotProbConf struct {
- LevelId int64 `json:"levelId"`
- SlotSpinsPotProb
- }
- type SlotSpinsPotProb struct {
- WeightOne int64 `json:"weightOne"`
- ScoreOne int64 `json:"scoreOne"`
- WeightTwo int64 `json:"weightTwo"`
- ScoreTwo int64 `json:"scoreTwo"`
- }
- type SlotSpinsPotProbShow struct {
- LvRange
- SlotSpinsPotProb
- }
|