feat(http): 启动时打印路由表并合并请求方法
This commit is contained in:
1 parent
90d47c0152
commit
cfed548cbc
7 files changed
+252
-7
No files matched your search
@@ -18,7 +18,7 @@ type pingInput struct {
|
||||
Name string `json:"name" form:"name" binding:"required" dc:"请求中的问候对象"`
|
||||
}
|
||||
type pingForm struct {
|
||||
framework.Meta `path:"/ping" method:"GET" summary:"问候示例" tag:"example" dc:"HTTP 路由声明"`
|
||||
framework.Meta `path:"/ping" method:"GET,POST" summary:"问候示例" tag:"example" dc:"HTTP 路由声明"`
|
||||
pingInput `dc:"独立的请求输入,不包含运行依赖"`
|
||||
}
|
||||
type pingOutput struct {
|
||||
|
||||