ソースを参照

add swag

master
shenjiachi 1週間前
コミット
e760f956ae
3個のファイルの変更28行の追加10行の削除
  1. +12
    -5
      docs/docs.go
  2. +9
    -3
      docs/swagger.json
  3. +7
    -2
      docs/swagger.yaml

+ 12
- 5
docs/docs.go ファイルの表示

@@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT.

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs

import "github.com/swaggo/swag"
@@ -1438,9 +1437,7 @@ const docTemplate = `{
"name": "req",
"in": "body",
"required": true,
"schema": {
"type": "object"
}
"schema": {}
}
],
"responses": {
@@ -8248,6 +8245,10 @@ const docTemplate = `{
"md.AddLevelTaskReq": {
"type": "object",
"properties": {
"active_days": {
"description": "活跃多少天",
"type": "string"
},
"finish_count": {
"description": "多少天内完成的指标",
"type": "string"
@@ -12890,6 +12891,10 @@ const docTemplate = `{
"md.UpdateLevelTaskReq": {
"type": "object",
"properties": {
"active_days": {
"description": "活跃多少天",
"type": "string"
},
"finish_count": {
"description": "多少天内完成的指标",
"type": "string"
@@ -14546,6 +14551,8 @@ var SwaggerInfo = &swag.Spec{
Description: "管理后台接口文档",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}

func init() {


+ 9
- 3
docs/swagger.json ファイルの表示

@@ -1430,9 +1430,7 @@
"name": "req",
"in": "body",
"required": true,
"schema": {
"type": "object"
}
"schema": {}
}
],
"responses": {
@@ -8240,6 +8238,10 @@
"md.AddLevelTaskReq": {
"type": "object",
"properties": {
"active_days": {
"description": "活跃多少天",
"type": "string"
},
"finish_count": {
"description": "多少天内完成的指标",
"type": "string"
@@ -12882,6 +12884,10 @@
"md.UpdateLevelTaskReq": {
"type": "object",
"properties": {
"active_days": {
"description": "活跃多少天",
"type": "string"
},
"finish_count": {
"description": "多少天内完成的指标",
"type": "string"


+ 7
- 2
docs/swagger.yaml ファイルの表示

@@ -451,6 +451,9 @@ definitions:
type: object
md.AddLevelTaskReq:
properties:
active_days:
description: 活跃多少天
type: string
finish_count:
description: 多少天内完成的指标
type: string
@@ -3666,6 +3669,9 @@ definitions:
type: object
md.UpdateLevelTaskReq:
properties:
active_days:
description: 活跃多少天
type: string
finish_count:
description: 多少天内完成的指标
type: string
@@ -5741,8 +5747,7 @@ paths:
in: body
name: req
required: true
schema:
type: object
schema: {}
produces:
- application/json
responses:


読み込み中…
キャンセル
保存