package data type ChargeGift struct { Id int `json:"id"` //充值ID Type int `json:"type"` //充值类型 PriceType int `json:"price_type"` //货币类型 Price int `json:"price"` //礼包价格 OpenType int `json:"open_type"` //开启条件 OpenArg int `json:"open_arg"` //条件数值 BeginTime int64 `json:"begin_time"` //礼包开始日期 EndTime int64 `json:"end_time"` //礼包结束日期 Duration int `json:"duration"` //持续时间 BuyTimes int `json:"buy_times"` //购买次数 BagType int `json:"bag_type"` //礼包类型 BagName int `json:"bag_name"` //礼包名称 DropId int `json:"drop_id"` //礼包掉落 Name int `json:"name"` //礼包名称 } func (data *ChargeGift) id() int { return data.Id } type ChargeGiftTable struct { table[int, *ChargeGift] }