diff --git a/app/hdl/hdl_demo.go b/app/hdl/hdl_demo.go index 975a335..92ae977 100644 --- a/app/hdl/hdl_demo.go +++ b/app/hdl/hdl_demo.go @@ -23,7 +23,7 @@ import ( // @Param req body interface{} true "任意参数" // @Success 200 {object} map[string]interface{} "返回任意参数" // @Failure 400 {object} md.Response "具体错误" -// @Router /api/v1/test [POST] +// @Router /api/v1/test [GET] func Demo(c *gin.Context) { var args interface{} if c.Request.Method == "GET" { diff --git a/docs/docs.go b/docs/docs.go index 2b4917a..9a2f76d 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -63,7 +63,7 @@ const docTemplate = `{ } }, "/api/v1/test": { - "post": { + "get": { "description": "Demo样例测试", "consumes": [ "application/json" diff --git a/docs/swagger.json b/docs/swagger.json index da9d712..f8f7399 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -57,7 +57,7 @@ } }, "/api/v1/test": { - "post": { + "get": { "description": "Demo样例测试", "consumes": [ "application/json" diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 501ecf3..723e358 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -102,7 +102,7 @@ paths: tags: - 对象存储 /api/v1/test: - post: + get: consumes: - application/json description: Demo样例测试