package v1 import ( "epic/internal/model/entity" "github.com/gogf/gf/v2/frame/g" ) type GetOneReq struct { g.Meta `path:"/getOne" method:"get" tags:"Hero" summary:"Get one hero"` Code string `v:"required" dc:"角色code"` } type GetOneRes struct { *entity.EpicHeroInfo } // GetListReq GetListRes 列表返回所有角色 type GetListReq struct { g.Meta `path:"/getList" method:"get" tags:"Hero" summary:"Get all hero"` } type GetListRes struct { Records []*EpicHeroVO `json:"list"` // ✅ 返回一个数组 } type GetDetailReq struct { g.Meta `path:"/getDetail" method:"get" tags:"Hero" summary:"Get hero detail by code"` Code string `v:"required" dc:"角色code"` } type GetDetailRes struct { Data *HeroDetailVO `json:"data"` }