refactor(hero): 重构英雄相关接口和数据结构

- 修改 GetDetailReq 结构体,将 Code 字段改为 HeroCode
- 更新 GetDetailRes 结构体,将 Rarity 字段改为 Stars,类型从 string 改为 int
-调整 EpicHeroVO 结构体,移除 orm 标签,将 Rarity 改为 Stars- 更新相关控制器和逻辑层代码,以适应上述变更
This commit is contained in:
hu xiaotong
2025-06-23 09:22:57 +08:00
parent 1fbea6ad9f
commit 89a6cdc001
4 changed files with 15 additions and 15 deletions

View File

@@ -1,17 +1,17 @@
package v1
type EpicHeroVO struct {
Id int64 `json:"id" orm:"id" description:"文件编号"` // 文件编号
HeroName string `json:"heroName" orm:"hero_name" description:"配置编号"` // 配置编号
HeroCode string `json:"heroCode" orm:"hero_code" description:"文件名"` // 文件名
HeroAttrLv60 string `json:"heroAttrLv60" orm:"hero_attr_lv60" description:"文件路径"` // 文件路径
NickName string `json:"nickName" orm:"nick_name" description:"配置编号"` // 配置编号
Rarity string `json:"rarity" orm:"rarity" description:"配置编号"` // 配置编号
Role string `json:"role" orm:"role" description:"配置编号"` // 配置编号
Zodiac string `json:"zodiac" orm:"zodiac" description:"配置编号"` // 配置编号
HeadImgUrl string `json:"headImgUrl" orm:"head_img_url" description:"配置编号"` // 配置编号
Attribute string `json:"attribute" orm:"attribute" description:"配置编号"` // 配置编号
Remark string `json:"remark" orm:"remark" description:"配置编号"` // 配置编号
Id int64 `json:"id"` // 文件编号
HeroName string `json:"heroName"` // 配置编号
HeroCode string `json:"heroCode"` // 文件名
HeroAttrLv60 string `json:"heroAttrLv60"` // 文件路径
NickName string `json:"nickName"` // 配置编号
Stars int `json:"stars"` // 配置编号
Role string `json:"role"` // 配置编号
Zodiac string `json:"zodiac"` // 配置编号
HeadImgUrl string `json:"headImgUrl"` // 配置编号
Attribute string `json:"attribute"` // 配置编号
Remark string `json:"remark"` // 配置编号
}
// HeroRespSimpleVO 简要信息