ecs/servers/game/data_old/charge.go
2025-06-04 18:17:39 +08:00

26 lines
957 B
Go

package data
type Charge struct {
Id int `json:"id"` //套餐序号
Type int `json:"type"` //充值类型
Quantity int `json:"quantity"` //礼包数量
PriceType int `json:"price_type"` //货币类型
ShowPrice int `json:"show_price"` //显示价格
TradePrice int `json:"trade_price"` //交易价格
ItemName int `json:"item_name"` //名字
ItemId int `json:"item_id"` //货币物品ID
ItemNum int `json:"item_num"` //货币物品数量
FirstExItemId int `json:"first_ex_item_id"` //首次赠送物品
FirstExItemNum int `json:"first_ex_item_num"` //首次赠送数量
ExItemId int `json:"ex_item_id"` //赠送物品
ExItemNum int `json:"ex_item_num"` //赠送数量
}
func (data *Charge) id() int {
return data.Id
}
type ChargeTable struct {
table[int, *Charge]
}