Selaa lähdekoodia

update

adv_callback
dengbiao 1 kuukausi sitten
vanhempi
commit
089818d698
4 muutettua tiedostoa jossa 12 lisäystä ja 12 poistoa
  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 Näytä tiedosto

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


+ 3
- 3
docs/docs.go Näytä tiedosto

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


+ 3
- 3
docs/swagger.json Näytä tiedosto

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


+ 3
- 3
docs/swagger.yaml Näytä tiedosto

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


Ladataan…
Peruuta
Tallenna