package data type ShopPool struct { Id int `json:"id"` //索引(ID) ShopType int `json:"shop_type"` //商店类型 SceneId int `json:"scene_id"` //解锁场景ID ItemNum int `json:"item_num"` //池子随机出现商品数量 RefreshInterval int `json:"refresh_interval"` //刷新时间(小时) ManualRefreshLimit int `json:"manual_refresh_limit"` //手动刷新次数 RefreshPriceType int `json:"refresh_price_type"` //手动刷新价格类型 ManualRefreshPrice int `json:"manual_refresh_price"` //手动刷新价格 Discount []int `json:"discount"` //直降折扣比例 DiscountWeight []int `json:"discount_weight"` //直降折扣比例权重 RefreshIncentives int `json:"refresh_incentives"` //必出商品刷新次数 OnlyManual bool `json:"only_manual"` //刷新次数是否仅手动 IncentivesList []int `json:"incentives_list"` //必出商品商店ID } func (data *ShopPool) id() int { return data.Id } type ShopPoolTable struct { table[int, *ShopPool] }