20 lines
605 B
Go
20 lines
605 B
Go
![]() |
package data
|
||
|
|
||
|
type WarshipStar struct {
|
||
|
Id int `json:"id"` //索引(ID)
|
||
|
ItemId int `json:"item_id"` //道具ID
|
||
|
WarshipId int `json:"warship_id"` //战舰ID
|
||
|
StarLevel int `json:"star_level"` //星级
|
||
|
ConsumeItemId []int `json:"consume_item_id"` //升级消耗ID
|
||
|
ConsumeItemNum []int `json:"consume_item_num"` //升级消耗数量
|
||
|
AttrPercent int `json:"attr_percent"` //升星增加万分比属性
|
||
|
}
|
||
|
|
||
|
func (data *WarshipStar) id() int {
|
||
|
return data.Id
|
||
|
}
|
||
|
|
||
|
type WarshipStarTable struct {
|
||
|
table[int, *WarshipStar]
|
||
|
}
|