From a9a16bf0aabf5323a658d79a87473008d2197584 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期一, 10 七月 2023 14:10:45 +0800 Subject: [PATCH] add --- docs/docs.go | 147 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 147 insertions(+), 0 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index e2eca69..6cbada4 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -2818,6 +2818,113 @@ } } }, + "/api/status/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "Status" + ], + "summary": "娣诲姞鐘舵��", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddStatus" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/status/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "Status" + ], + "summary": "鍒犻櫎鐘舵��", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/status/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "Status" + ], + "summary": "鐘舵�佸垪琛�", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/status/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "Status" + ], + "summary": "鏇存柊鐘舵��", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateStatusList" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/user/changePassword": { "post": { "produces": [ @@ -4400,6 +4507,17 @@ } } }, + "request.AddStatus": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, "request.ChangePasswordReq": { "type": "object", "properties": { @@ -5476,6 +5594,35 @@ } } }, + "request.UpdateStatus": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "request.UpdateStatusList": { + "type": "object", + "required": [ + "list" + ], + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/request.UpdateStatus" + } + } + } + }, "response.CityResponse": { "type": "object", "properties": { -- Gitblit v1.8.0