package data type RigEquip struct { Id int `json:"id"` //索引 ItemId int `json:"item_ID"` //装备ID SortBy int `json:"sort_by"` //排序(小到大) Level int `json:"level"` //等级 NextId int `json:"next_id"` //下一级装备ID CostItemId []int `json:"cost_item_id"` //升级消耗道具ID CostItemNum []int `json:"cost_item_num"` //升级消耗道具数量 CarryAttrType1 int `json:"carry_attr_type1"` //携带属性类型1 CarryAttrValue1 int `json:"carry_attr_value1"` //携带加成固定值1 AttrType1 int `json:"attr_type1"` //属性类型1 AttrValue1 int `json:"attr_value1"` //加成固定值1 } func (data *RigEquip) id() int { return data.Id } type RigEquipTable struct { table[int, *RigEquip] }