29 lines
708 B
Go
29 lines
708 B
Go
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:"/app-api/epic/hero/list-all" method:"get" tags:"Hero" summary:"Get all hero"`
|
|
}
|
|
type GetListRes []*EpicHeroVO
|
|
|
|
type GetDetailReq struct {
|
|
g.Meta `path:"/app-api/epic/hero/hero-detail" method:"get" tags:"Hero" summary:"Get hero detail by code"`
|
|
Code string `v:"required" dc:"角色code"`
|
|
}
|
|
type GetDetailRes struct {
|
|
*HeroDetailVO
|
|
}
|