From db12d74878fd5df77b8999eafe31b55471ce3913 Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Tue, 6 Apr 2021 11:56:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5swagger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/docs/docs.go | 976 +++++++++------------------------------ server/docs/swagger.json | 973 ++++++++------------------------------ server/docs/swagger.yaml | 563 +++++----------------- 3 files changed, 525 insertions(+), 1987 deletions(-) diff --git a/server/docs/docs.go b/server/docs/docs.go index b392f782..3d1718d9 100644 --- a/server/docs/docs.go +++ b/server/docs/docs.go @@ -1,5 +1,6 @@ // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT -// This file was generated by swaggo/swag +// This file was generated by swaggo/swag at +// 2021-04-06 11:56:23.4731221 +0800 CST m=+1.258292701 package docs @@ -49,6 +50,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysApi" } } @@ -87,6 +89,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysApi" } } @@ -101,6 +104,45 @@ var doc = `{ } } }, + "/api/deleteApisByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysApi" + ], + "summary": "删除选中Api", + "parameters": [ + { + "description": "ID", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/api/getAllApis": { "post": { "security": [ @@ -152,6 +194,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.GetById" } } @@ -190,6 +233,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.SearchApiParams" } } @@ -228,6 +272,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysApi" } } @@ -266,6 +311,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/response.SysAuthorityCopyResponse" } } @@ -304,6 +350,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysAuthority" } } @@ -342,6 +389,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysAuthority" } } @@ -380,6 +428,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.PageInfo" } } @@ -418,6 +467,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysAuthority" } } @@ -456,6 +506,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysAuthority" } } @@ -494,6 +545,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.AutoCodeStruct" } } @@ -613,6 +665,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.AutoCodeStruct" } } @@ -670,6 +723,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.Login" } } @@ -708,6 +762,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.CasbinInReceive" } } @@ -746,6 +801,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.CasbinInReceive" } } @@ -784,6 +840,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.ExaCustomer" } } @@ -820,6 +877,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.ExaCustomer" } } @@ -856,6 +914,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.ExaCustomer" } } @@ -892,6 +951,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.ExaCustomer" } } @@ -930,6 +990,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.PageInfo" } } @@ -995,9 +1056,7 @@ var doc = `{ } ], "responses": { - "200": { - "description": "" - } + "200": {} } } }, @@ -1025,14 +1084,13 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.ExcelInfo" } } ], "responses": { - "200": { - "description": "" - } + "200": {} } } }, @@ -1153,6 +1211,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.ExaFileUploadAndDownload" } } @@ -1227,6 +1286,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.PageInfo" } } @@ -1348,6 +1408,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.InitDB" } } @@ -1413,6 +1474,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.GetAuthorityId" } } @@ -1451,6 +1513,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysBaseMenu" } } @@ -1489,6 +1552,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.AddMenuAuthorityInfo" } } @@ -1527,6 +1591,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.GetById" } } @@ -1565,6 +1630,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.GetById" } } @@ -1600,6 +1666,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.Empty" } } @@ -1635,6 +1702,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.Empty" } } @@ -1673,6 +1741,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.PageInfo" } } @@ -1711,6 +1780,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysBaseMenu" } } @@ -1851,6 +1921,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionary" } } @@ -1889,6 +1960,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionary" } } @@ -1927,6 +1999,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionary" } } @@ -1965,6 +2038,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.SysDictionarySearch" } } @@ -2003,6 +2077,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionary" } } @@ -2041,6 +2116,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionaryDetail" } } @@ -2079,6 +2155,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionaryDetail" } } @@ -2117,6 +2194,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionaryDetail" } } @@ -2155,6 +2233,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.SysDictionaryDetailSearch" } } @@ -2193,6 +2272,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionaryDetail" } } @@ -2231,6 +2311,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysOperationRecord" } } @@ -2269,6 +2350,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysOperationRecord" } } @@ -2307,6 +2389,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.IdsReq" } } @@ -2345,6 +2428,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysOperationRecord" } } @@ -2383,6 +2467,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.SysOperationRecordSearch" } } @@ -2490,6 +2575,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.System" } } @@ -2525,6 +2611,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.ChangePasswordStruct" } } @@ -2563,6 +2650,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.GetById" } } @@ -2601,6 +2689,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.PageInfo" } } @@ -2631,6 +2720,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysUser" } } @@ -2669,6 +2759,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.SetUserAuth" } } @@ -2707,6 +2798,7 @@ var doc = `{ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysUser" } } @@ -2720,486 +2812,118 @@ var doc = `{ } } } + } + }, + "definitions": { + "config.AliyunOSS": { + "type": "object", + "properties": { + "accessKeyId": { + "type": "string" + }, + "accessKeySecret": { + "type": "string" + }, + "bucketName": { + "type": "string" + }, + "bucketUrl": { + "type": "string" + }, + "endpoint": { + "type": "string" + } + } }, - "/workflowProcess/completeWorkflowMove": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "提交工作流", - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } + "config.Autocode": { + "type": "object", + "properties": { + "root": { + "type": "string" + }, + "server": { + "type": "string" + }, + "serverApi": { + "type": "string" + }, + "serverInitialize": { + "type": "string" + }, + "serverModel": { + "type": "string" + }, + "serverRequest": { + "type": "string" + }, + "serverRouter": { + "type": "string" + }, + "serverService": { + "type": "string" + }, + "web": { + "type": "string" + }, + "webApi": { + "type": "string" + }, + "webFlow": { + "type": "string" + }, + "webForm": { + "type": "string" + }, + "webTable": { + "type": "string" } } }, - "/workflowProcess/createWorkflowProcess": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "创建WorkflowProcess", - "parameters": [ - { - "description": "创建WorkflowProcess", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/model.WorkflowProcess" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } + "config.Captcha": { + "type": "object", + "properties": { + "imgHeight": { + "type": "integer" + }, + "imgWidth": { + "type": "integer" + }, + "keyLong": { + "type": "integer" } } }, - "/workflowProcess/deleteWorkflowProcess": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "删除WorkflowProcess", - "parameters": [ - { - "description": "删除WorkflowProcess", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/model.WorkflowProcess" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", - "schema": { - "type": "string" - } - } + "config.Casbin": { + "type": "object", + "properties": { + "modelPath": { + "type": "string" } } }, - "/workflowProcess/deleteWorkflowProcessByIds": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "批量删除WorkflowProcess", - "parameters": [ - { - "description": "批量删除WorkflowProcess", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.IdsReq" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/findWorkflowProcess": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "用id查询WorkflowProcess", - "parameters": [ - { - "description": "用id查询WorkflowProcess", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/model.WorkflowProcess" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/findWorkflowStep": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "用id查询工作流步骤", - "parameters": [ - { - "description": "用id查询WorkflowProcess", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/model.WorkflowProcess" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/getMyNeed": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "我的待办", - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/getMyStated": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "我发起的工作流", - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/getWorkflowMoveByID": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "根据id获取当前节点详情和历史", - "parameters": [ - { - "description": "根据id获取当前节点详情和过往", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetById" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/getWorkflowProcessList": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "分页获取WorkflowProcess列表", - "parameters": [ - { - "description": "分页获取WorkflowProcess列表", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.WorkflowProcessSearch" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/startWorkflow": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "开启工作流", - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/updateWorkflowProcess": { - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "更新WorkflowProcess", - "parameters": [ - { - "description": "更新WorkflowProcess", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/model.WorkflowProcess" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", - "schema": { - "type": "string" - } - } - } - } - } - }, - "definitions": { - "config.AliyunOSS": { - "type": "object", - "properties": { - "accessKeyId": { - "type": "string" - }, - "accessKeySecret": { - "type": "string" - }, - "bucketName": { - "type": "string" - }, - "bucketUrl": { - "type": "string" - }, - "endpoint": { - "type": "string" - } - } - }, - "config.Captcha": { - "type": "object", - "properties": { - "imgHeight": { - "type": "integer" - }, - "imgWidth": { - "type": "integer" - }, - "keyLong": { - "type": "integer" - } - } - }, - "config.Casbin": { - "type": "object", - "properties": { - "modelPath": { - "type": "string" - } - } - }, - "config.Email": { - "type": "object", - "properties": { - "from": { - "type": "string" - }, - "host": { - "type": "string" - }, - "isSSL": { - "type": "boolean" - }, - "nickname": { - "type": "string" - }, - "port": { - "type": "integer" - }, - "secret": { - "type": "string" - }, - "to": { - "type": "string" + "config.Email": { + "type": "object", + "properties": { + "from": { + "type": "string" + }, + "host": { + "type": "string" + }, + "isSSL": { + "type": "boolean" + }, + "nickname": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "secret": { + "type": "string" + }, + "to": { + "type": "string" } } }, @@ -3312,6 +3036,11 @@ var doc = `{ "type": "object", "$ref": "#/definitions/config.AliyunOSS" }, + "autoCode": { + "description": "auto", + "type": "object", + "$ref": "#/definitions/config.Autocode" + }, "captcha": { "type": "object", "$ref": "#/definitions/config.Captcha" @@ -3888,244 +3617,6 @@ var doc = `{ } } }, - "model.WorkflowEdge": { - "type": "object", - "properties": { - "clazz": { - "type": "string" - }, - "conditionExpression": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "description": { - "type": "string" - }, - "endPoint": { - "description": "终点信息", - "type": "object", - "$ref": "#/definitions/model.WorkflowEndPoint" - }, - "hideIcon": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "label": { - "type": "string" - }, - "reverse": { - "type": "boolean" - }, - "seq": { - "type": "string" - }, - "shape": { - "type": "string" - }, - "source": { - "type": "string" - }, - "sourceAnchor": { - "type": "integer" - }, - "startPoint": { - "description": "起点信息", - "type": "object", - "$ref": "#/definitions/model.WorkflowStartPoint" - }, - "target": { - "type": "string" - }, - "targetAnchor": { - "type": "integer" - }, - "updatedAt": { - "type": "string" - } - } - }, - "model.WorkflowEndPoint": { - "type": "object", - "properties": { - "createdAt": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "index": { - "type": "integer" - }, - "updatedAt": { - "type": "string" - }, - "workflowEdgeID": { - "type": "string" - }, - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "model.WorkflowNode": { - "type": "object", - "properties": { - "assignType": { - "type": "string" - }, - "assignValue": { - "type": "string" - }, - "clazz": { - "type": "string" - }, - "content": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "cycle": { - "type": "string" - }, - "description": { - "type": "string" - }, - "dueDate": { - "type": "string" - }, - "duration": { - "type": "string" - }, - "hideIcon": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "label": { - "type": "string" - }, - "shape": { - "type": "string" - }, - "stateValue": { - "type": "string" - }, - "subject": { - "type": "string" - }, - "success": { - "type": "boolean" - }, - "to": { - "type": "string" - }, - "type": { - "type": "string" - }, - "updatedAt": { - "type": "string" - }, - "view": { - "type": "string" - }, - "waitState": { - "type": "string" - }, - "workflowProcessID": { - "type": "string" - }, - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "model.WorkflowProcess": { - "type": "object", - "properties": { - "category": { - "type": "string" - }, - "clazz": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "description": { - "type": "string" - }, - "edges": { - "description": "流程链接数据", - "type": "array", - "items": { - "$ref": "#/definitions/model.WorkflowEdge" - } - }, - "hideIcon": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "label": { - "type": "string" - }, - "name": { - "type": "string" - }, - "nodes": { - "description": "流程节点数据", - "type": "array", - "items": { - "$ref": "#/definitions/model.WorkflowNode" - } - }, - "updatedAt": { - "type": "string" - }, - "view": { - "type": "string" - } - } - }, - "model.WorkflowStartPoint": { - "type": "object", - "properties": { - "createdAt": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "index": { - "type": "integer" - }, - "updatedAt": { - "type": "string" - }, - "workflowEdgeID": { - "type": "string" - }, - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, "request.AddMenuAuthorityInfo": { "type": "object", "properties": { @@ -4437,61 +3928,6 @@ var doc = `{ } } }, - "request.WorkflowProcessSearch": { - "type": "object", - "properties": { - "category": { - "type": "string" - }, - "clazz": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "description": { - "type": "string" - }, - "edges": { - "description": "流程链接数据", - "type": "array", - "items": { - "$ref": "#/definitions/model.WorkflowEdge" - } - }, - "hideIcon": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "label": { - "type": "string" - }, - "name": { - "type": "string" - }, - "nodes": { - "description": "流程节点数据", - "type": "array", - "items": { - "$ref": "#/definitions/model.WorkflowNode" - } - }, - "page": { - "type": "integer" - }, - "pageSize": { - "type": "integer" - }, - "updatedAt": { - "type": "string" - }, - "view": { - "type": "string" - } - } - }, "response.SysAuthorityCopyResponse": { "type": "object", "properties": { diff --git a/server/docs/swagger.json b/server/docs/swagger.json index b90baea6..76ccb1dc 100644 --- a/server/docs/swagger.json +++ b/server/docs/swagger.json @@ -33,6 +33,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysApi" } } @@ -71,6 +72,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysApi" } } @@ -85,6 +87,45 @@ } } }, + "/api/deleteApisByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysApi" + ], + "summary": "删除选中Api", + "parameters": [ + { + "description": "ID", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/api/getAllApis": { "post": { "security": [ @@ -136,6 +177,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.GetById" } } @@ -174,6 +216,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.SearchApiParams" } } @@ -212,6 +255,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysApi" } } @@ -250,6 +294,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/response.SysAuthorityCopyResponse" } } @@ -288,6 +333,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysAuthority" } } @@ -326,6 +372,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysAuthority" } } @@ -364,6 +411,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.PageInfo" } } @@ -402,6 +450,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysAuthority" } } @@ -440,6 +489,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysAuthority" } } @@ -478,6 +528,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.AutoCodeStruct" } } @@ -597,6 +648,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.AutoCodeStruct" } } @@ -654,6 +706,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.Login" } } @@ -692,6 +745,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.CasbinInReceive" } } @@ -730,6 +784,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.CasbinInReceive" } } @@ -768,6 +823,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.ExaCustomer" } } @@ -804,6 +860,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.ExaCustomer" } } @@ -840,6 +897,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.ExaCustomer" } } @@ -876,6 +934,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.ExaCustomer" } } @@ -914,6 +973,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.PageInfo" } } @@ -979,9 +1039,7 @@ } ], "responses": { - "200": { - "description": "" - } + "200": {} } } }, @@ -1009,14 +1067,13 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.ExcelInfo" } } ], "responses": { - "200": { - "description": "" - } + "200": {} } } }, @@ -1137,6 +1194,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.ExaFileUploadAndDownload" } } @@ -1211,6 +1269,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.PageInfo" } } @@ -1332,6 +1391,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.InitDB" } } @@ -1397,6 +1457,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.GetAuthorityId" } } @@ -1435,6 +1496,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysBaseMenu" } } @@ -1473,6 +1535,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.AddMenuAuthorityInfo" } } @@ -1511,6 +1574,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.GetById" } } @@ -1549,6 +1613,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.GetById" } } @@ -1584,6 +1649,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.Empty" } } @@ -1619,6 +1685,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.Empty" } } @@ -1657,6 +1724,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.PageInfo" } } @@ -1695,6 +1763,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysBaseMenu" } } @@ -1835,6 +1904,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionary" } } @@ -1873,6 +1943,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionary" } } @@ -1911,6 +1982,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionary" } } @@ -1949,6 +2021,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.SysDictionarySearch" } } @@ -1987,6 +2060,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionary" } } @@ -2025,6 +2099,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionaryDetail" } } @@ -2063,6 +2138,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionaryDetail" } } @@ -2101,6 +2177,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionaryDetail" } } @@ -2139,6 +2216,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.SysDictionaryDetailSearch" } } @@ -2177,6 +2255,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysDictionaryDetail" } } @@ -2215,6 +2294,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysOperationRecord" } } @@ -2253,6 +2333,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysOperationRecord" } } @@ -2291,6 +2372,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.IdsReq" } } @@ -2329,6 +2411,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysOperationRecord" } } @@ -2367,6 +2450,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.SysOperationRecordSearch" } } @@ -2474,6 +2558,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.System" } } @@ -2509,6 +2594,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.ChangePasswordStruct" } } @@ -2547,6 +2633,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.GetById" } } @@ -2585,6 +2672,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.PageInfo" } } @@ -2615,6 +2703,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysUser" } } @@ -2653,6 +2742,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/request.SetUserAuth" } } @@ -2691,6 +2781,7 @@ "in": "body", "required": true, "schema": { + "type": "object", "$ref": "#/definitions/model.SysUser" } } @@ -2704,486 +2795,118 @@ } } } + } + }, + "definitions": { + "config.AliyunOSS": { + "type": "object", + "properties": { + "accessKeyId": { + "type": "string" + }, + "accessKeySecret": { + "type": "string" + }, + "bucketName": { + "type": "string" + }, + "bucketUrl": { + "type": "string" + }, + "endpoint": { + "type": "string" + } + } }, - "/workflowProcess/completeWorkflowMove": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "提交工作流", - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } + "config.Autocode": { + "type": "object", + "properties": { + "root": { + "type": "string" + }, + "server": { + "type": "string" + }, + "serverApi": { + "type": "string" + }, + "serverInitialize": { + "type": "string" + }, + "serverModel": { + "type": "string" + }, + "serverRequest": { + "type": "string" + }, + "serverRouter": { + "type": "string" + }, + "serverService": { + "type": "string" + }, + "web": { + "type": "string" + }, + "webApi": { + "type": "string" + }, + "webFlow": { + "type": "string" + }, + "webForm": { + "type": "string" + }, + "webTable": { + "type": "string" } } }, - "/workflowProcess/createWorkflowProcess": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "创建WorkflowProcess", - "parameters": [ - { - "description": "创建WorkflowProcess", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/model.WorkflowProcess" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } + "config.Captcha": { + "type": "object", + "properties": { + "imgHeight": { + "type": "integer" + }, + "imgWidth": { + "type": "integer" + }, + "keyLong": { + "type": "integer" } } }, - "/workflowProcess/deleteWorkflowProcess": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "删除WorkflowProcess", - "parameters": [ - { - "description": "删除WorkflowProcess", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/model.WorkflowProcess" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", - "schema": { - "type": "string" - } - } + "config.Casbin": { + "type": "object", + "properties": { + "modelPath": { + "type": "string" } } }, - "/workflowProcess/deleteWorkflowProcessByIds": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "批量删除WorkflowProcess", - "parameters": [ - { - "description": "批量删除WorkflowProcess", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.IdsReq" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/findWorkflowProcess": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "用id查询WorkflowProcess", - "parameters": [ - { - "description": "用id查询WorkflowProcess", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/model.WorkflowProcess" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/findWorkflowStep": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "用id查询工作流步骤", - "parameters": [ - { - "description": "用id查询WorkflowProcess", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/model.WorkflowProcess" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/getMyNeed": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "我的待办", - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/getMyStated": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "我发起的工作流", - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/getWorkflowMoveByID": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "根据id获取当前节点详情和历史", - "parameters": [ - { - "description": "根据id获取当前节点详情和过往", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.GetById" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/getWorkflowProcessList": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "分页获取WorkflowProcess列表", - "parameters": [ - { - "description": "分页获取WorkflowProcess列表", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.WorkflowProcessSearch" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/startWorkflow": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "开启工作流", - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/workflowProcess/updateWorkflowProcess": { - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "WorkflowProcess" - ], - "summary": "更新WorkflowProcess", - "parameters": [ - { - "description": "更新WorkflowProcess", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/model.WorkflowProcess" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", - "schema": { - "type": "string" - } - } - } - } - } - }, - "definitions": { - "config.AliyunOSS": { - "type": "object", - "properties": { - "accessKeyId": { - "type": "string" - }, - "accessKeySecret": { - "type": "string" - }, - "bucketName": { - "type": "string" - }, - "bucketUrl": { - "type": "string" - }, - "endpoint": { - "type": "string" - } - } - }, - "config.Captcha": { - "type": "object", - "properties": { - "imgHeight": { - "type": "integer" - }, - "imgWidth": { - "type": "integer" - }, - "keyLong": { - "type": "integer" - } - } - }, - "config.Casbin": { - "type": "object", - "properties": { - "modelPath": { - "type": "string" - } - } - }, - "config.Email": { - "type": "object", - "properties": { - "from": { - "type": "string" - }, - "host": { - "type": "string" - }, - "isSSL": { - "type": "boolean" - }, - "nickname": { - "type": "string" - }, - "port": { - "type": "integer" - }, - "secret": { - "type": "string" - }, - "to": { - "type": "string" + "config.Email": { + "type": "object", + "properties": { + "from": { + "type": "string" + }, + "host": { + "type": "string" + }, + "isSSL": { + "type": "boolean" + }, + "nickname": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "secret": { + "type": "string" + }, + "to": { + "type": "string" } } }, @@ -3296,6 +3019,11 @@ "type": "object", "$ref": "#/definitions/config.AliyunOSS" }, + "autoCode": { + "description": "auto", + "type": "object", + "$ref": "#/definitions/config.Autocode" + }, "captcha": { "type": "object", "$ref": "#/definitions/config.Captcha" @@ -3872,244 +3600,6 @@ } } }, - "model.WorkflowEdge": { - "type": "object", - "properties": { - "clazz": { - "type": "string" - }, - "conditionExpression": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "description": { - "type": "string" - }, - "endPoint": { - "description": "终点信息", - "type": "object", - "$ref": "#/definitions/model.WorkflowEndPoint" - }, - "hideIcon": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "label": { - "type": "string" - }, - "reverse": { - "type": "boolean" - }, - "seq": { - "type": "string" - }, - "shape": { - "type": "string" - }, - "source": { - "type": "string" - }, - "sourceAnchor": { - "type": "integer" - }, - "startPoint": { - "description": "起点信息", - "type": "object", - "$ref": "#/definitions/model.WorkflowStartPoint" - }, - "target": { - "type": "string" - }, - "targetAnchor": { - "type": "integer" - }, - "updatedAt": { - "type": "string" - } - } - }, - "model.WorkflowEndPoint": { - "type": "object", - "properties": { - "createdAt": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "index": { - "type": "integer" - }, - "updatedAt": { - "type": "string" - }, - "workflowEdgeID": { - "type": "string" - }, - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "model.WorkflowNode": { - "type": "object", - "properties": { - "assignType": { - "type": "string" - }, - "assignValue": { - "type": "string" - }, - "clazz": { - "type": "string" - }, - "content": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "cycle": { - "type": "string" - }, - "description": { - "type": "string" - }, - "dueDate": { - "type": "string" - }, - "duration": { - "type": "string" - }, - "hideIcon": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "label": { - "type": "string" - }, - "shape": { - "type": "string" - }, - "stateValue": { - "type": "string" - }, - "subject": { - "type": "string" - }, - "success": { - "type": "boolean" - }, - "to": { - "type": "string" - }, - "type": { - "type": "string" - }, - "updatedAt": { - "type": "string" - }, - "view": { - "type": "string" - }, - "waitState": { - "type": "string" - }, - "workflowProcessID": { - "type": "string" - }, - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "model.WorkflowProcess": { - "type": "object", - "properties": { - "category": { - "type": "string" - }, - "clazz": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "description": { - "type": "string" - }, - "edges": { - "description": "流程链接数据", - "type": "array", - "items": { - "$ref": "#/definitions/model.WorkflowEdge" - } - }, - "hideIcon": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "label": { - "type": "string" - }, - "name": { - "type": "string" - }, - "nodes": { - "description": "流程节点数据", - "type": "array", - "items": { - "$ref": "#/definitions/model.WorkflowNode" - } - }, - "updatedAt": { - "type": "string" - }, - "view": { - "type": "string" - } - } - }, - "model.WorkflowStartPoint": { - "type": "object", - "properties": { - "createdAt": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "index": { - "type": "integer" - }, - "updatedAt": { - "type": "string" - }, - "workflowEdgeID": { - "type": "string" - }, - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, "request.AddMenuAuthorityInfo": { "type": "object", "properties": { @@ -4421,61 +3911,6 @@ } } }, - "request.WorkflowProcessSearch": { - "type": "object", - "properties": { - "category": { - "type": "string" - }, - "clazz": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "description": { - "type": "string" - }, - "edges": { - "description": "流程链接数据", - "type": "array", - "items": { - "$ref": "#/definitions/model.WorkflowEdge" - } - }, - "hideIcon": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "label": { - "type": "string" - }, - "name": { - "type": "string" - }, - "nodes": { - "description": "流程节点数据", - "type": "array", - "items": { - "$ref": "#/definitions/model.WorkflowNode" - } - }, - "page": { - "type": "integer" - }, - "pageSize": { - "type": "integer" - }, - "updatedAt": { - "type": "string" - }, - "view": { - "type": "string" - } - } - }, "response.SysAuthorityCopyResponse": { "type": "object", "properties": { diff --git a/server/docs/swagger.yaml b/server/docs/swagger.yaml index 03318a51..2249cbc3 100644 --- a/server/docs/swagger.yaml +++ b/server/docs/swagger.yaml @@ -13,6 +13,35 @@ definitions: endpoint: type: string type: object + config.Autocode: + properties: + root: + type: string + server: + type: string + serverApi: + type: string + serverInitialize: + type: string + serverModel: + type: string + serverRequest: + type: string + serverRouter: + type: string + serverService: + type: string + web: + type: string + webApi: + type: string + webFlow: + type: string + webForm: + type: string + webTable: + type: string + type: object config.Captcha: properties: imgHeight: @@ -115,6 +144,10 @@ definitions: aliyunOSS: $ref: '#/definitions/config.AliyunOSS' type: object + autoCode: + $ref: '#/definitions/config.Autocode' + description: auto + type: object captcha: $ref: '#/definitions/config.Captcha' type: object @@ -499,165 +532,6 @@ definitions: $ref: '#/definitions/config.Server' type: object type: object - model.WorkflowEdge: - properties: - clazz: - type: string - conditionExpression: - type: string - createdAt: - type: string - description: - type: string - endPoint: - $ref: '#/definitions/model.WorkflowEndPoint' - description: 终点信息 - type: object - hideIcon: - type: boolean - id: - type: string - label: - type: string - reverse: - type: boolean - seq: - type: string - shape: - type: string - source: - type: string - sourceAnchor: - type: integer - startPoint: - $ref: '#/definitions/model.WorkflowStartPoint' - description: 起点信息 - type: object - target: - type: string - targetAnchor: - type: integer - updatedAt: - type: string - type: object - model.WorkflowEndPoint: - properties: - createdAt: - type: string - id: - type: integer - index: - type: integer - updatedAt: - type: string - workflowEdgeID: - type: string - x: - type: number - "y": - type: number - type: object - model.WorkflowNode: - properties: - assignType: - type: string - assignValue: - type: string - clazz: - type: string - content: - type: string - createdAt: - type: string - cycle: - type: string - description: - type: string - dueDate: - type: string - duration: - type: string - hideIcon: - type: boolean - id: - type: string - label: - type: string - shape: - type: string - stateValue: - type: string - subject: - type: string - success: - type: boolean - to: - type: string - type: - type: string - updatedAt: - type: string - view: - type: string - waitState: - type: string - workflowProcessID: - type: string - x: - type: number - "y": - type: number - type: object - model.WorkflowProcess: - properties: - category: - type: string - clazz: - type: string - createdAt: - type: string - description: - type: string - edges: - description: 流程链接数据 - items: - $ref: '#/definitions/model.WorkflowEdge' - type: array - hideIcon: - type: boolean - id: - type: string - label: - type: string - name: - type: string - nodes: - description: 流程节点数据 - items: - $ref: '#/definitions/model.WorkflowNode' - type: array - updatedAt: - type: string - view: - type: string - type: object - model.WorkflowStartPoint: - properties: - createdAt: - type: string - id: - type: integer - index: - type: integer - updatedAt: - type: string - workflowEdgeID: - type: string - x: - type: number - "y": - type: number - type: object request.AddMenuAuthorityInfo: properties: authorityId: @@ -861,43 +735,6 @@ definitions: user_id: type: integer type: object - request.WorkflowProcessSearch: - properties: - category: - type: string - clazz: - type: string - createdAt: - type: string - description: - type: string - edges: - description: 流程链接数据 - items: - $ref: '#/definitions/model.WorkflowEdge' - type: array - hideIcon: - type: boolean - id: - type: string - label: - type: string - name: - type: string - nodes: - description: 流程节点数据 - items: - $ref: '#/definitions/model.WorkflowNode' - type: array - page: - type: integer - pageSize: - type: integer - updatedAt: - type: string - view: - type: string - type: object response.SysAuthorityCopyResponse: properties: authority: @@ -924,6 +761,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysApi' + type: object produces: - application/json responses: @@ -947,6 +785,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysApi' + type: object produces: - application/json responses: @@ -959,6 +798,30 @@ paths: summary: 删除api tags: - SysApi + /api/deleteApisByIds: + delete: + consumes: + - application/json + parameters: + - description: ID + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.IdsReq' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"删除成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 删除选中Api + tags: + - SysApi /api/getAllApis: post: consumes: @@ -986,6 +849,7 @@ paths: required: true schema: $ref: '#/definitions/request.GetById' + type: object produces: - application/json responses: @@ -1009,6 +873,7 @@ paths: required: true schema: $ref: '#/definitions/request.SearchApiParams' + type: object produces: - application/json responses: @@ -1032,6 +897,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysApi' + type: object produces: - application/json responses: @@ -1055,6 +921,7 @@ paths: required: true schema: $ref: '#/definitions/response.SysAuthorityCopyResponse' + type: object produces: - application/json responses: @@ -1078,6 +945,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysAuthority' + type: object produces: - application/json responses: @@ -1101,6 +969,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysAuthority' + type: object produces: - application/json responses: @@ -1124,6 +993,7 @@ paths: required: true schema: $ref: '#/definitions/request.PageInfo' + type: object produces: - application/json responses: @@ -1147,6 +1017,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysAuthority' + type: object produces: - application/json responses: @@ -1170,6 +1041,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysAuthority' + type: object produces: - application/json responses: @@ -1193,6 +1065,7 @@ paths: required: true schema: $ref: '#/definitions/model.AutoCodeStruct' + type: object produces: - application/json responses: @@ -1264,6 +1137,7 @@ paths: required: true schema: $ref: '#/definitions/model.AutoCodeStruct' + type: object produces: - application/json responses: @@ -1301,6 +1175,7 @@ paths: required: true schema: $ref: '#/definitions/request.Login' + type: object produces: - application/json responses: @@ -1322,6 +1197,7 @@ paths: required: true schema: $ref: '#/definitions/request.CasbinInReceive' + type: object produces: - application/json responses: @@ -1345,6 +1221,7 @@ paths: required: true schema: $ref: '#/definitions/request.CasbinInReceive' + type: object produces: - application/json responses: @@ -1368,6 +1245,7 @@ paths: required: true schema: $ref: '#/definitions/model.ExaCustomer' + type: object produces: - application/json responses: @@ -1390,6 +1268,7 @@ paths: required: true schema: $ref: '#/definitions/model.ExaCustomer' + type: object produces: - application/json responses: @@ -1412,6 +1291,7 @@ paths: required: true schema: $ref: '#/definitions/model.ExaCustomer' + type: object produces: - application/json responses: @@ -1434,6 +1314,7 @@ paths: required: true schema: $ref: '#/definitions/model.ExaCustomer' + type: object produces: - application/json responses: @@ -1457,6 +1338,7 @@ paths: required: true schema: $ref: '#/definitions/request.PageInfo' + type: object produces: - application/json responses: @@ -1496,8 +1378,7 @@ paths: produces: - application/json responses: - "200": - description: "" + "200": {} security: - ApiKeyAuth: [] summary: 下载模板 @@ -1514,11 +1395,11 @@ paths: required: true schema: $ref: '#/definitions/model.ExcelInfo' + type: object produces: - application/octet-stream responses: - "200": - description: "" + "200": {} security: - ApiKeyAuth: [] summary: 导出Excel @@ -1591,6 +1472,7 @@ paths: required: true schema: $ref: '#/definitions/model.ExaFileUploadAndDownload' + type: object produces: - application/json responses: @@ -1636,6 +1518,7 @@ paths: required: true schema: $ref: '#/definitions/request.PageInfo' + type: object produces: - application/json responses: @@ -1713,6 +1596,7 @@ paths: required: true schema: $ref: '#/definitions/request.InitDB' + type: object produces: - application/json responses: @@ -1750,6 +1634,7 @@ paths: required: true schema: $ref: '#/definitions/request.GetAuthorityId' + type: object produces: - application/json responses: @@ -1773,6 +1658,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysBaseMenu' + type: object produces: - application/json responses: @@ -1796,6 +1682,7 @@ paths: required: true schema: $ref: '#/definitions/request.AddMenuAuthorityInfo' + type: object produces: - application/json responses: @@ -1819,6 +1706,7 @@ paths: required: true schema: $ref: '#/definitions/request.GetById' + type: object produces: - application/json responses: @@ -1842,6 +1730,7 @@ paths: required: true schema: $ref: '#/definitions/request.GetById' + type: object produces: - application/json responses: @@ -1863,6 +1752,7 @@ paths: required: true schema: $ref: '#/definitions/request.Empty' + type: object produces: - application/json responses: @@ -1884,6 +1774,7 @@ paths: required: true schema: $ref: '#/definitions/request.Empty' + type: object produces: - application/json responses: @@ -1907,6 +1798,7 @@ paths: required: true schema: $ref: '#/definitions/request.PageInfo' + type: object produces: - application/json responses: @@ -1930,6 +1822,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysBaseMenu' + type: object produces: - application/json responses: @@ -2015,6 +1908,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysDictionary' + type: object produces: - application/json responses: @@ -2038,6 +1932,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysDictionary' + type: object produces: - application/json responses: @@ -2061,6 +1956,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysDictionary' + type: object produces: - application/json responses: @@ -2084,6 +1980,7 @@ paths: required: true schema: $ref: '#/definitions/request.SysDictionarySearch' + type: object produces: - application/json responses: @@ -2107,6 +2004,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysDictionary' + type: object produces: - application/json responses: @@ -2130,6 +2028,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysDictionaryDetail' + type: object produces: - application/json responses: @@ -2153,6 +2052,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysDictionaryDetail' + type: object produces: - application/json responses: @@ -2176,6 +2076,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysDictionaryDetail' + type: object produces: - application/json responses: @@ -2199,6 +2100,7 @@ paths: required: true schema: $ref: '#/definitions/request.SysDictionaryDetailSearch' + type: object produces: - application/json responses: @@ -2222,6 +2124,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysDictionaryDetail' + type: object produces: - application/json responses: @@ -2245,6 +2148,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysOperationRecord' + type: object produces: - application/json responses: @@ -2268,6 +2172,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysOperationRecord' + type: object produces: - application/json responses: @@ -2291,6 +2196,7 @@ paths: required: true schema: $ref: '#/definitions/request.IdsReq' + type: object produces: - application/json responses: @@ -2314,6 +2220,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysOperationRecord' + type: object produces: - application/json responses: @@ -2337,6 +2244,7 @@ paths: required: true schema: $ref: '#/definitions/request.SysOperationRecordSearch' + type: object produces: - application/json responses: @@ -2400,6 +2308,7 @@ paths: required: true schema: $ref: '#/definitions/model.System' + type: object produces: - application/json responses: @@ -2421,6 +2330,7 @@ paths: required: true schema: $ref: '#/definitions/request.ChangePasswordStruct' + type: object produces: - application/json responses: @@ -2444,6 +2354,7 @@ paths: required: true schema: $ref: '#/definitions/request.GetById' + type: object produces: - application/json responses: @@ -2467,6 +2378,7 @@ paths: required: true schema: $ref: '#/definitions/request.PageInfo' + type: object produces: - application/json responses: @@ -2488,6 +2400,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysUser' + type: object produces: - application/json responses: @@ -2509,6 +2422,7 @@ paths: required: true schema: $ref: '#/definitions/request.SetUserAuth' + type: object produces: - application/json responses: @@ -2532,6 +2446,7 @@ paths: required: true schema: $ref: '#/definitions/model.SysUser' + type: object produces: - application/json responses: @@ -2544,254 +2459,6 @@ paths: summary: 设置用户信息 tags: - SysUser - /workflowProcess/completeWorkflowMove: - post: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"获取成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 提交工作流 - tags: - - WorkflowProcess - /workflowProcess/createWorkflowProcess: - post: - consumes: - - application/json - parameters: - - description: 创建WorkflowProcess - in: body - name: data - required: true - schema: - $ref: '#/definitions/model.WorkflowProcess' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"获取成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 创建WorkflowProcess - tags: - - WorkflowProcess - /workflowProcess/deleteWorkflowProcess: - delete: - consumes: - - application/json - parameters: - - description: 删除WorkflowProcess - in: body - name: data - required: true - schema: - $ref: '#/definitions/model.WorkflowProcess' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"删除成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 删除WorkflowProcess - tags: - - WorkflowProcess - /workflowProcess/deleteWorkflowProcessByIds: - delete: - consumes: - - application/json - parameters: - - description: 批量删除WorkflowProcess - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.IdsReq' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"删除成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 批量删除WorkflowProcess - tags: - - WorkflowProcess - /workflowProcess/findWorkflowProcess: - get: - consumes: - - application/json - parameters: - - description: 用id查询WorkflowProcess - in: body - name: data - required: true - schema: - $ref: '#/definitions/model.WorkflowProcess' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"查询成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 用id查询WorkflowProcess - tags: - - WorkflowProcess - /workflowProcess/findWorkflowStep: - get: - consumes: - - application/json - parameters: - - description: 用id查询WorkflowProcess - in: body - name: data - required: true - schema: - $ref: '#/definitions/model.WorkflowProcess' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"查询成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 用id查询工作流步骤 - tags: - - WorkflowProcess - /workflowProcess/getMyNeed: - get: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"获取成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 我的待办 - tags: - - WorkflowProcess - /workflowProcess/getMyStated: - get: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"获取成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 我发起的工作流 - tags: - - WorkflowProcess - /workflowProcess/getWorkflowMoveByID: - get: - consumes: - - application/json - parameters: - - description: 根据id获取当前节点详情和过往 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.GetById' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"获取成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 根据id获取当前节点详情和历史 - tags: - - WorkflowProcess - /workflowProcess/getWorkflowProcessList: - get: - consumes: - - application/json - parameters: - - description: 分页获取WorkflowProcess列表 - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.WorkflowProcessSearch' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"获取成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 分页获取WorkflowProcess列表 - tags: - - WorkflowProcess - /workflowProcess/startWorkflow: - post: - consumes: - - application/json - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"获取成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 开启工作流 - tags: - - WorkflowProcess - /workflowProcess/updateWorkflowProcess: - put: - consumes: - - application/json - parameters: - - description: 更新WorkflowProcess - in: body - name: data - required: true - schema: - $ref: '#/definitions/model.WorkflowProcess' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"更新成功"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 更新WorkflowProcess - tags: - - WorkflowProcess securityDefinitions: ApiKeyAuth: in: header