feat(hero): 新增英雄相关接口和功能

- 新增英雄信息获取接口和相关逻辑
- 实现英雄列表和详情查询功能- 添加英雄相关数据结构和VO对象
- 更新项目结构,移除不必要的文件
This commit is contained in:
hxt
2025-06-21 20:12:02 +08:00
parent 85e3a6540b
commit c5c273f0ab
19 changed files with 374 additions and 66 deletions

View File

@@ -2,12 +2,10 @@ package cmd
import (
"context"
"epic/internal/controller/hero"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/os/gcmd"
"epic/internal/controller/hello"
)
var (
@@ -20,7 +18,7 @@ var (
s.Group("/", func(group *ghttp.RouterGroup) {
group.Middleware(ghttp.MiddlewareHandlerResponse)
group.Bind(
hello.NewV1(),
hero.NewV1(),
)
})
s.Run()