Browse Source

add swag

master
shenjiachi 1 week ago
parent
commit
e760f956ae
3 changed files with 28 additions and 10 deletions
  1. +12
    -5
      docs/docs.go
  2. +9
    -3
      docs/swagger.json
  3. +7
    -2
      docs/swagger.yaml

+ 12
- 5
docs/docs.go View File

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

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


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


func init() { func init() {


+ 9
- 3
docs/swagger.json View File

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


+ 7
- 2
docs/swagger.yaml View File

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


Loading…
Cancel
Save