dengbiao 1 day ago
parent
commit
97a138a8a4
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      app/hdl/hdl_demo.go
  2. +1
    -1
      docs/docs.go
  3. +1
    -1
      docs/swagger.json
  4. +1
    -1
      docs/swagger.yaml

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

@@ -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" {


+ 1
- 1
docs/docs.go View File

@@ -63,7 +63,7 @@ const docTemplate = `{
}
},
"/api/v1/test": {
"post": {
"get": {
"description": "Demo样例测试",
"consumes": [
"application/json"


+ 1
- 1
docs/swagger.json View File

@@ -57,7 +57,7 @@
}
},
"/api/v1/test": {
"post": {
"get": {
"description": "Demo样例测试",
"consumes": [
"application/json"


+ 1
- 1
docs/swagger.yaml View File

@@ -102,7 +102,7 @@ paths:
tags:
- 对象存储
/api/v1/test:
post:
get:
consumes:
- application/json
description: Demo样例测试


Loading…
Cancel
Save