ci(drone): 添加 Go 模块和构建缓存

- 在 restore cache 和 rebuild cache 步骤中添加了 go-mod-cache 和 go
This commit is contained in:
hxt
2025-07-10 21:16:25 +08:00
parent d36a8bec21
commit 9293db3809
5 changed files with 103 additions and 141 deletions

View File

@@ -17,10 +17,63 @@ type ThirdPartyArtifactDTO struct {
// ThirdPartyHeroDTO represents a hero from the third-party API.
// Note: This is a placeholder structure. Adjust it according to the actual API response.
// ThirdPartyHeroDTO 第三方英雄数据传输对象
type ThirdPartyHeroDTO struct {
Code string `json:"code"`
Name string `json:"name"`
Rarity int `json:"rarity"`
Attribute string `json:"attribute"`
Role string `json:"role"`
}
Code string `json:"code"`
ID string `json:"_id"`
Name string `json:"-"`
Rarity int `json:"rarity"`
Attribute string `json:"attribute"`
Role string `json:"role"`
Zodiac string `json:"zodiac"`
SelfDevotion SelfDevotion `json:"self_devotion"`
Assets Assets `json:"assets"`
ExEquip []ExEquip `json:"ex_equip"`
Skills map[string]Skill `json:"skills"`
CalculatedStatus map[string]Status `json:"calculatedStatus"`
}
type SelfDevotion struct {
Type string `json:"type"`
Grades map[string]float64 `json:"grades"`
}
type Assets struct {
Icon string `json:"icon"`
Image string `json:"image"`
Thumbnail string `json:"thumbnail"`
}
type ExEquip struct {
Stat struct {
Type string `json:"type"`
Value float64 `json:"value"`
} `json:"stat"`
}
type Skill struct {
HitTypes []string `json:"hitTypes"`
Rate float64 `json:"rate,omitempty"`
Pow float64 `json:"pow,omitempty"`
Targets int `json:"targets,omitempty"`
SelfHpScale float64 `json:"selfHpScaling,omitempty"`
SelfDefScale float64 `json:"selfDefScaling,omitempty"`
Options []any `json:"options"`
}
type Status struct {
Lv50FiveStarFullyAwakened Stats `json:"lv50FiveStarFullyAwakened"`
Lv60SixStarFullyAwakened Stats `json:"lv60SixStarFullyAwakened"`
}
type Stats struct {
CP int `json:"cp"`
ATK int `json:"atk"`
HP int `json:"hp"`
SPD int `json:"spd"`
DEF int `json:"def"`
CHC float64 `json:"chc"`
CHD float64 `json:"chd"`
DAC float64 `json:"dac"`
EFF int `json:"eff"`
EFR int `json:"efr"`
}