package data type AttributeConfig struct { Id int `json:"id"` //索引(ID) AttrKey string `json:"attrKey"` //属性 Combat int `json:"combat"` //战斗力 DefVal float64 `json:"defVal"` //初始值(用于钻机) AttrValueType int `json:"attr_value_type"` //属性值类型 } func (data *AttributeConfig) id() int { return data.Id } type AttributeConfigTable struct { table[int, *AttributeConfig] }