Browse Source

update

adv_callback
dengbiao 1 month ago
parent
commit
089818d698
4 changed files with 12 additions and 12 deletions
  1. +3
    -3
      app/hdl/hdl_demo.go
  2. +3
    -3
      docs/docs.go
  3. +3
    -3
      docs/swagger.json
  4. +3
    -3
      docs/swagger.yaml

+ 3
- 3
app/hdl/hdl_demo.go View File

@@ -20,10 +20,10 @@ import (
// @Description Demo样例测试 // @Description Demo样例测试
// @Accept json // @Accept json
// @Produce 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 "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/v1/demo [post]
// @Router /api/v1/test [POST]
func Demo(c *gin.Context) { func Demo(c *gin.Context) {
var args interface{} var args interface{}
if c.Request.Method == "GET" { if c.Request.Method == "GET" {


+ 3
- 3
docs/docs.go View File

@@ -62,7 +62,7 @@ const docTemplate = `{
} }
} }
}, },
"/api/v1/demo": {
"/api/v1/test": {
"post": { "post": {
"description": "Demo样例测试", "description": "Demo样例测试",
"consumes": [ "consumes": [
@@ -77,7 +77,7 @@ const docTemplate = `{
"summary": "Demo测试", "summary": "Demo测试",
"parameters": [ "parameters": [
{ {
"description": "用户名密码",
"description": "任意参数",
"name": "req", "name": "req",
"in": "body", "in": "body",
"required": true, "required": true,
@@ -86,7 +86,7 @@ const docTemplate = `{
], ],
"responses": { "responses": {
"200": { "200": {
"description": "token",
"description": "返回任意参数",
"schema": { "schema": {
"type": "object", "type": "object",
"additionalProperties": true "additionalProperties": true


+ 3
- 3
docs/swagger.json View File

@@ -56,7 +56,7 @@
} }
} }
}, },
"/api/v1/demo": {
"/api/v1/test": {
"post": { "post": {
"description": "Demo样例测试", "description": "Demo样例测试",
"consumes": [ "consumes": [
@@ -71,7 +71,7 @@
"summary": "Demo测试", "summary": "Demo测试",
"parameters": [ "parameters": [
{ {
"description": "用户名密码",
"description": "任意参数",
"name": "req", "name": "req",
"in": "body", "in": "body",
"required": true, "required": true,
@@ -80,7 +80,7 @@
], ],
"responses": { "responses": {
"200": { "200": {
"description": "token",
"description": "返回任意参数",
"schema": { "schema": {
"type": "object", "type": "object",
"additionalProperties": true "additionalProperties": true


+ 3
- 3
docs/swagger.yaml View File

@@ -101,13 +101,13 @@ paths:
summary: 通用请求-对象存储-上传许可链接(获取) summary: 通用请求-对象存储-上传许可链接(获取)
tags: tags:
- 对象存储 - 对象存储
/api/v1/demo:
/api/v1/test:
post: post:
consumes: consumes:
- application/json - application/json
description: Demo样例测试 description: Demo样例测试
parameters: parameters:
- description: 用户名密码
- description: 任意参数
in: body in: body
name: req name: req
required: true required: true
@@ -116,7 +116,7 @@ paths:
- application/json - application/json
responses: responses:
"200": "200":
description: token
description: 返回任意参数
schema: schema:
additionalProperties: true additionalProperties: true
type: object type: object


Loading…
Cancel
Save