package dto type HeroSetData struct { Data []HeroSetItem `json:"data"` } type HeroSetItem struct { ArtifactCode string `json:"artifactCode"` Atk int `json:"atk"` Chc int `json:"chc"` Chd int `json:"chd"` CreateDate string `json:"createDate"` Def int `json:"def"` Eff int `json:"eff"` Efr int `json:"efr"` Gs int `json:"gs"` Hp int `json:"hp"` Speed int `json:"spd"` // 注意字段名 spd 在 json 中是 speed UnitCode string `json:"unitCode"` UnitName string `json:"unitName"` Sets map[string]int `json:"sets"` // 动态套装类型 SetsName string `json:"setsName"` // 解析后触发的套装效果名称,例如 "速度,生命" } type HeroSetGroup struct { SetImmune int `json:"set_immune"` SetVampire int `json:"set_vampire"` }