diff --git a/app/hdl/hdl_demo.go b/app/hdl/hdl_demo.go index 14dd771..5b8ebdb 100644 --- a/app/hdl/hdl_demo.go +++ b/app/hdl/hdl_demo.go @@ -20,10 +20,10 @@ import ( // @Description Demo样例测试 // @Accept json // @Produce json -// @Param req body interface{} true "用户名密码" -// @Success 200 {object} map[string]interface{} "token" +// @Param req body interface{} true "任意参数" +// @Success 200 {object} map[string]interface{} "返回任意参数" // @Failure 400 {object} md.Response "具体错误" -// @Router /api/v1/demo [post] +// @Router /api/v1/test [POST] func Demo(c *gin.Context) { var args interface{} if c.Request.Method == "GET" { diff --git a/docs/docs.go b/docs/docs.go index cf03ab3..2b4917a 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -62,7 +62,7 @@ const docTemplate = `{ } } }, - "/api/v1/demo": { + "/api/v1/test": { "post": { "description": "Demo样例测试", "consumes": [ @@ -77,7 +77,7 @@ const docTemplate = `{ "summary": "Demo测试", "parameters": [ { - "description": "用户名密码", + "description": "任意参数", "name": "req", "in": "body", "required": true, @@ -86,7 +86,7 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "token", + "description": "返回任意参数", "schema": { "type": "object", "additionalProperties": true diff --git a/docs/swagger.json b/docs/swagger.json index 492cec4..da9d712 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -56,7 +56,7 @@ } } }, - "/api/v1/demo": { + "/api/v1/test": { "post": { "description": "Demo样例测试", "consumes": [ @@ -71,7 +71,7 @@ "summary": "Demo测试", "parameters": [ { - "description": "用户名密码", + "description": "任意参数", "name": "req", "in": "body", "required": true, @@ -80,7 +80,7 @@ ], "responses": { "200": { - "description": "token", + "description": "返回任意参数", "schema": { "type": "object", "additionalProperties": true diff --git a/docs/swagger.yaml b/docs/swagger.yaml index aa46c29..501ecf3 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -101,13 +101,13 @@ paths: summary: 通用请求-对象存储-上传许可链接(获取) tags: - 对象存储 - /api/v1/demo: + /api/v1/test: post: consumes: - application/json description: Demo样例测试 parameters: - - description: 用户名密码 + - description: 任意参数 in: body name: req required: true @@ -116,7 +116,7 @@ paths: - application/json responses: "200": - description: token + description: 返回任意参数 schema: additionalProperties: true type: object