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

@@ -31,7 +31,7 @@ func (c *ControllerV1) GetList(ctx context.Context, req *v1.GetListReq) (res *v1
}
func (c *ControllerV1) GetDetail(ctx context.Context, req *v1.GetDetailReq) (res *v1.GetDetailRes, err error) {
detail, err := service.Hero().GetHeroDetailByCode(ctx, req.Code)
detail, err := service.Hero().GetHeroDetailByCode(ctx, req.HeroCode)
if err != nil {
return nil, err
}