From 5fac03fb857cf9a160e1736a25de2c5f95f5e44f Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期二, 18 七月 2023 17:18:18 +0800 Subject: [PATCH] add --- docs/docs.go | 255 +++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 215 insertions(+), 40 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 1f314e2..85c7809 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1414,6 +1414,125 @@ } } }, + "/api/department/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "Department" + ], + "summary": "娣诲姞閮ㄩ棬", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddDepartment" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/department/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "Department" + ], + "summary": "鍒犻櫎閮ㄩ棬", + "parameters": [ + { + "type": "integer", + "description": "閮ㄩ棬ID", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/department/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "Department" + ], + "summary": "閮ㄩ棬鍒楄〃", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.DepartmentResponse" + } + } + } + ] + } + } + } + } + }, + "/api/department/update/{id}": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "Department" + ], + "summary": "鏇存柊閮ㄩ棬", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateDepartmentList" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/enterpriseNature/add": { "post": { "produces": [ @@ -5366,6 +5485,17 @@ } } }, + "model.Department": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "model.EnterpriseNature": { "type": "object", "properties": { @@ -6162,26 +6292,16 @@ "description": "鐢ㄦ埛瑙掕壊ID", "type": "integer" }, - "companyName": { - "type": "string" - }, - "createAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" + "departmentId": { + "type": "integer" }, "email": { "type": "string" - }, - "enable": { - "type": "boolean" }, "headerImg": { "type": "string" }, "id": { - "type": "string" - }, - "ip": { "type": "string" }, "menuIds": { @@ -6194,26 +6314,13 @@ "nickName": { "type": "string" }, - "parentId": { - "type": "string" - }, - "parentName": { - "type": "string" - }, "phone": { - "type": "string" - }, - "port": { "type": "string" }, "pos": { "type": "string" }, - "status": { - "type": "integer" - }, - "updateAt": { - "description": "鏇存柊鏃堕棿", + "realName": { "type": "string" }, "userType": { @@ -6494,6 +6601,17 @@ }, "serviceMode": { "type": "integer" + } + } + }, + "request.AddDepartment": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" } } }, @@ -7385,29 +7503,46 @@ "request.Register": { "type": "object", "properties": { + "authorityId": { + "description": "鐢ㄦ埛瑙掕壊ID", + "type": "integer" + }, + "departmentId": { + "type": "integer" + }, "email": { - "type": "string", - "example": "鐢靛瓙閭" + "type": "string" }, "headerImg": { - "type": "string", - "example": "澶村儚閾炬帴" + "type": "string" + }, + "id": { + "type": "string" }, "nickName": { - "type": "string", - "example": "鏄电О" + "type": "string" }, - "passWord": { - "type": "string", - "example": "瀵嗙爜" + "password": { + "type": "string" }, "phone": { - "type": "string", - "example": "鐢佃瘽鍙风爜" + "type": "string" }, - "userName": { - "type": "string", - "example": "鐢ㄦ埛鍚�" + "pos": { + "type": "string" + }, + "rePassword": { + "description": "纭瀵嗙爜", + "type": "string" + }, + "realName": { + "type": "string" + }, + "userType": { + "$ref": "#/definitions/constvar.UserType" + }, + "username": { + "type": "string" } } }, @@ -7978,6 +8113,35 @@ }, "serviceMode": { "type": "integer" + } + } + }, + "request.UpdateDepartment": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "request.UpdateDepartmentList": { + "type": "object", + "required": [ + "departments" + ], + "properties": { + "departments": { + "type": "array", + "items": { + "$ref": "#/definitions/request.UpdateDepartment" + } } } }, @@ -9017,6 +9181,17 @@ } } }, + "response.DepartmentResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Department" + } + } + } + }, "response.EnterpriseNatureResponse": { "type": "object", "properties": { -- Gitblit v1.8.0