Parcourir la source

add swag

master
shenjiachi il y a 1 semaine
Parent
révision
e760f956ae
3 fichiers modifiés avec 28 ajouts et 10 suppressions
  1. +12
    -5
      docs/docs.go
  2. +9
    -3
      docs/swagger.json
  3. +7
    -2
      docs/swagger.yaml

+ 12
- 5
docs/docs.go Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

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


Chargement…
Annuler
Enregistrer