From 9babc21fe27c569137cf89ab30b64daed683c79b Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 20 Nov 2024 14:50:57 +0800 Subject: [PATCH 1/2] update --- app/hdl/hdl_demo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/hdl/hdl_demo.go b/app/hdl/hdl_demo.go index 5b8ebdb..9a7fb29 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" { From e2a8b0ece7f3264bece30f9e75ecd5c0f4e5c618 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 20 Nov 2024 14:52:59 +0800 Subject: [PATCH 2/2] update --- docs/docs.go | 2 +- docs/swagger.json | 2 +- docs/swagger.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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样例测试