diff --git a/server/docs/docs.go b/server/docs/docs.go index 72d08422..9027645e 100644 --- a/server/docs/docs.go +++ b/server/docs/docs.go @@ -1,6 +1,6 @@ // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // This file was generated by swaggo/swag at -// 2020-04-20 14:50:58.4141704 +0800 CST m=+0.881639701 +// 2020-07-07 10:12:31.2264113 +0800 CST m=+0.088765101 package docs @@ -521,8 +521,8 @@ var doc = `{ } } }, - "/base/captcha": { - "post": { + "/autoCode/getDatabase": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -535,12 +535,12 @@ var doc = `{ "application/json" ], "tags": [ - "base" + "SysApi" ], - "summary": "生成验证码", + "summary": "获取当前表所有字段", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { "type": "string" } @@ -548,8 +548,8 @@ var doc = `{ } } }, - "/base/captcha/": { - "get": { + "/base/captcha": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -564,7 +564,7 @@ var doc = `{ "tags": [ "base" ], - "summary": "生成验证码图片路径", + "summary": "生成验证码", "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", @@ -1534,35 +1534,38 @@ var doc = `{ } } }, - "/system/ReloadSystem": { + "/sysDictionary/createSysDictionary": { "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "system" + "SysDictionary" ], - "summary": "设置配置文件内容", + "summary": "创建SysDictionary", "parameters": [ { - "description": "设置配置文件内容", + "description": "创建SysDictionary", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/model.System" + "$ref": "#/definitions/model.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -1570,23 +1573,38 @@ var doc = `{ } } }, - "/system/getSystemConfig": { - "post": { + "/sysDictionary/deleteSysDictionary": { + "delete": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "system" + "SysDictionary" + ], + "summary": "删除SysDictionary", + "parameters": [ + { + "description": "删除SysDictionary", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysDictionary" + } + } ], - "summary": "获取配置文件内容", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -1594,35 +1612,38 @@ var doc = `{ } } }, - "/system/setSystemConfig": { - "post": { + "/sysDictionary/findSysDictionary": { + "get": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "system" + "SysDictionary" ], - "summary": "设置配置文件内容", + "summary": "用id查询SysDictionary", "parameters": [ { - "description": "设置配置文件内容", + "description": "用id查询SysDictionary", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/model.System" + "$ref": "#/definitions/model.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } @@ -1630,35 +1651,38 @@ var doc = `{ } } }, - "/user/changePassword": { - "put": { + "/sysDictionary/getSysDictionaryList": { + "get": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "SysUser" + "SysDictionary" ], - "summary": "用户修改密码", + "summary": "分页获取SysDictionary列表", "parameters": [ { - "description": "用户修改密码", + "description": "分页获取SysDictionary列表", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/request.ChangePasswordStruct" + "$ref": "#/definitions/request.SysDictionarySearch" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -1666,8 +1690,8 @@ var doc = `{ } } }, - "/user/deleteUser": { - "delete": { + "/sysDictionary/updateSysDictionary": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -1680,24 +1704,24 @@ var doc = `{ "application/json" ], "tags": [ - "SysUser" + "SysDictionary" ], - "summary": "删除用户", + "summary": "更新SysDictionary", "parameters": [ { - "description": "删除用户", + "description": "更新SysDictionary", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/request.SetUserAuth" + "$ref": "#/definitions/model.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } @@ -1705,7 +1729,7 @@ var doc = `{ } } }, - "/user/getUserList": { + "/sysDictionaryDetail/createSysDictionaryDetail": { "post": { "security": [ { @@ -1719,18 +1743,18 @@ var doc = `{ "application/json" ], "tags": [ - "SysUser" + "SysDictionaryDetail" ], - "summary": "分页获取用户列表", + "summary": "创建SysDictionaryDetail", "parameters": [ { - "description": "分页获取用户列表", + "description": "创建SysDictionaryDetail", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/request.PageInfo" + "$ref": "#/definitions/model.SysDictionaryDetail" } } ], @@ -1744,8 +1768,8 @@ var doc = `{ } } }, - "/user/setUserAuthority": { - "post": { + "/sysDictionaryDetail/deleteSysDictionaryDetail": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -1758,24 +1782,24 @@ var doc = `{ "application/json" ], "tags": [ - "SysUser" + "SysDictionaryDetail" ], - "summary": "设置用户权限", + "summary": "删除SysDictionaryDetail", "parameters": [ { - "description": "设置用户权限", + "description": "删除SysDictionaryDetail", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/request.SetUserAuth" + "$ref": "#/definitions/model.SysDictionaryDetail" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -1783,42 +1807,38 @@ var doc = `{ } } }, - "/user/uploadHeaderImg": { - "post": { + "/sysDictionaryDetail/findSysDictionaryDetail": { + "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ - "multipart/form-data" + "application/json" ], "produces": [ "application/json" ], "tags": [ - "SysUser" + "SysDictionaryDetail" ], - "summary": "用户上传头像", + "summary": "用id查询SysDictionaryDetail", "parameters": [ { - "type": "file", - "description": "用户上传头像", - "name": "headerImg", - "in": "formData", - "required": true - }, - { - "type": "string", - "description": "用户上传头像", - "name": "username", - "in": "formData", - "required": true + "description": "用id查询SysDictionaryDetail", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysDictionaryDetail" + } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } @@ -1826,81 +1846,646 @@ var doc = `{ } } }, - "/workflow/createWorkFlow": { - "post": { + "/sysDictionaryDetail/getSysDictionaryDetailList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "workflow" + "SysDictionaryDetail" ], - "summary": "注册工作流", + "summary": "分页获取SysDictionaryDetail列表", "parameters": [ { - "description": "注册工作流接口", + "description": "分页获取SysDictionaryDetail列表", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/model.SysWorkflow" + "$ref": "#/definitions/request.SysDictionaryDetailSearch" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } - } - }, - "definitions": { - "config.Captcha": { - "type": "object", - "properties": { - "imgHeight": { - "type": "integer" - }, - "imgWidth": { - "type": "integer" - }, - "keyLong": { - "type": "integer" + }, + "/sysDictionaryDetail/updateSysDictionaryDetail": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysDictionaryDetail" + ], + "summary": "更新SysDictionaryDetail", + "parameters": [ + { + "description": "更新SysDictionaryDetail", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysDictionaryDetail" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "schema": { + "type": "string" + } + } } } }, - "config.Casbin": { - "type": "object", - "properties": { - "modelPath": { - "type": "string" + "/sysOperationRecord/createSysOperationRecord": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "创建SysOperationRecord", + "parameters": [ + { + "description": "创建SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysOperationRecord" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } } } }, - "config.JWT": { - "type": "object", - "properties": { - "signingKey": { - "type": "string" + "/sysOperationRecord/deleteSysOperationRecord": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "删除SysOperationRecord", + "parameters": [ + { + "description": "删除SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysOperationRecord" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "schema": { + "type": "string" + } + } } } }, - "config.Log": { - "type": "object", - "properties": { - "file": { - "type": "string" - }, - "logFile": { - "type": "boolean" - }, - "prefix": { - "type": "string" - }, + "/sysOperationRecord/findSysOperationRecord": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "用id查询SysOperationRecord", + "parameters": [ + { + "description": "用id查询SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysOperationRecord" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysOperationRecord/getSysOperationRecordList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "分页获取SysOperationRecord列表", + "parameters": [ + { + "description": "分页获取SysOperationRecord列表", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/request.SysOperationRecordSearch" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysOperationRecord/updateSysOperationRecord": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "更新SysOperationRecord", + "parameters": [ + { + "description": "更新SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysOperationRecord" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/ReloadSystem": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "system" + ], + "summary": "设置配置文件内容", + "parameters": [ + { + "description": "设置配置文件内容", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.System" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/getSystemConfig": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "system" + ], + "summary": "获取配置文件内容", + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/setSystemConfig": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "system" + ], + "summary": "设置配置文件内容", + "parameters": [ + { + "description": "设置配置文件内容", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.System" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/user/changePassword": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysUser" + ], + "summary": "用户修改密码", + "parameters": [ + { + "description": "用户修改密码", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/request.ChangePasswordStruct" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/user/deleteUser": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysUser" + ], + "summary": "删除用户", + "parameters": [ + { + "description": "删除用户", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/request.GetById" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/user/getUserList": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysUser" + ], + "summary": "分页获取用户列表", + "parameters": [ + { + "description": "分页获取用户列表", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/request.PageInfo" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/user/setUserAuthority": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysUser" + ], + "summary": "设置用户权限", + "parameters": [ + { + "description": "设置用户权限", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/request.SetUserAuth" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/user/uploadHeaderImg": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysUser" + ], + "summary": "用户上传头像", + "parameters": [ + { + "type": "file", + "description": "用户上传头像", + "name": "headerImg", + "in": "formData", + "required": true + }, + { + "type": "string", + "description": "用户上传头像", + "name": "username", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/workflow/createWorkFlow": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "workflow" + ], + "summary": "注册工作流", + "parameters": [ + { + "description": "注册工作流接口", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysWorkflow" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}", + "schema": { + "type": "string" + } + } + } + } + } + }, + "definitions": { + "config.Captcha": { + "type": "object", + "properties": { + "imgHeight": { + "type": "integer" + }, + "imgWidth": { + "type": "integer" + }, + "keyLong": { + "type": "integer" + } + } + }, + "config.Casbin": { + "type": "object", + "properties": { + "modelPath": { + "type": "string" + } + } + }, + "config.JWT": { + "type": "object", + "properties": { + "signingKey": { + "type": "string" + } + } + }, + "config.Log": { + "type": "object", + "properties": { + "file": { + "type": "string" + }, + "logFile": { + "type": "boolean" + }, + "prefix": { + "type": "string" + }, "stdout": { "type": "string" } @@ -1941,6 +2526,12 @@ var doc = `{ "accessKey": { "type": "string" }, + "bucket": { + "type": "string" + }, + "imgPath": { + "type": "string" + }, "secretKey": { "type": "string" } @@ -2044,6 +2635,12 @@ var doc = `{ "abbreviation": { "type": "string" }, + "autoCreateApiToSql": { + "type": "boolean" + }, + "description": { + "type": "string" + }, "fields": { "type": "array", "items": { @@ -2055,6 +2652,9 @@ var doc = `{ }, "structName": { "type": "string" + }, + "tableName": { + "type": "string" } } }, @@ -2102,12 +2702,27 @@ var doc = `{ "columnName": { "type": "string" }, + "comment": { + "type": "string" + }, + "dataType": { + "type": "string" + }, + "dataTypeLong": { + "type": "string" + }, + "fieldDesc": { + "type": "string" + }, "fieldJson": { "type": "string" }, "fieldName": { "type": "string" }, + "fieldSearchType": { + "type": "string" + }, "fieldType": { "type": "string" } @@ -2218,6 +2833,88 @@ var doc = `{ } } }, + "model.SysDictionary": { + "type": "object", + "properties": { + "desc": { + "type": "string" + }, + "name": { + "type": "string" + }, + "status": { + "type": "boolean" + }, + "sysDictionaryDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/model.SysDictionaryDetail" + } + }, + "type": { + "type": "string" + } + } + }, + "model.SysDictionaryDetail": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "sort": { + "type": "integer" + }, + "status": { + "type": "boolean" + }, + "sysDictionaryID": { + "type": "integer" + }, + "value": { + "type": "integer" + } + } + }, + "model.SysOperationRecord": { + "type": "object", + "properties": { + "agent": { + "type": "string" + }, + "body": { + "type": "string" + }, + "error_message": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "latency": { + "type": "string" + }, + "method": { + "type": "string" + }, + "path": { + "type": "string" + }, + "resp": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "user": { + "type": "object", + "$ref": "#/definitions/model.SysUser" + }, + "user_id": { + "type": "integer" + } + } + }, "model.SysUser": { "type": "object", "properties": { @@ -2441,6 +3138,106 @@ var doc = `{ } } }, + "request.SysDictionaryDetailSearch": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "sort": { + "type": "integer" + }, + "status": { + "type": "boolean" + }, + "sysDictionaryID": { + "type": "integer" + }, + "value": { + "type": "integer" + } + } + }, + "request.SysDictionarySearch": { + "type": "object", + "properties": { + "desc": { + "type": "string" + }, + "name": { + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "status": { + "type": "boolean" + }, + "sysDictionaryDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/model.SysDictionaryDetail" + } + }, + "type": { + "type": "string" + } + } + }, + "request.SysOperationRecordSearch": { + "type": "object", + "properties": { + "agent": { + "type": "string" + }, + "body": { + "type": "string" + }, + "error_message": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "latency": { + "type": "string" + }, + "method": { + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "resp": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "user": { + "type": "object", + "$ref": "#/definitions/model.SysUser" + }, + "user_id": { + "type": "integer" + } + } + }, "response.SysAuthorityCopyResponse": { "type": "object", "properties": { @@ -2449,7 +3246,7 @@ var doc = `{ "$ref": "#/definitions/model.SysAuthority" }, "oldAuthorityId": { - "type": "integer" + "type": "string" } } } diff --git a/server/docs/swagger.json b/server/docs/swagger.json index 55b5be90..c55e3931 100644 --- a/server/docs/swagger.json +++ b/server/docs/swagger.json @@ -504,8 +504,8 @@ } } }, - "/base/captcha": { - "post": { + "/autoCode/getDatabase": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -518,12 +518,12 @@ "application/json" ], "tags": [ - "base" + "SysApi" ], - "summary": "生成验证码", + "summary": "获取当前表所有字段", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", "schema": { "type": "string" } @@ -531,8 +531,8 @@ } } }, - "/base/captcha/": { - "get": { + "/base/captcha": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -547,7 +547,7 @@ "tags": [ "base" ], - "summary": "生成验证码图片路径", + "summary": "生成验证码", "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", @@ -1517,35 +1517,38 @@ } } }, - "/system/ReloadSystem": { + "/sysDictionary/createSysDictionary": { "post": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "system" + "SysDictionary" ], - "summary": "设置配置文件内容", + "summary": "创建SysDictionary", "parameters": [ { - "description": "设置配置文件内容", + "description": "创建SysDictionary", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/model.System" + "$ref": "#/definitions/model.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -1553,23 +1556,38 @@ } } }, - "/system/getSystemConfig": { - "post": { + "/sysDictionary/deleteSysDictionary": { + "delete": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "system" + "SysDictionary" + ], + "summary": "删除SysDictionary", + "parameters": [ + { + "description": "删除SysDictionary", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysDictionary" + } + } ], - "summary": "获取配置文件内容", "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -1577,35 +1595,38 @@ } } }, - "/system/setSystemConfig": { - "post": { + "/sysDictionary/findSysDictionary": { + "get": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "system" + "SysDictionary" ], - "summary": "设置配置文件内容", + "summary": "用id查询SysDictionary", "parameters": [ { - "description": "设置配置文件内容", + "description": "用id查询SysDictionary", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/model.System" + "$ref": "#/definitions/model.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } @@ -1613,35 +1634,38 @@ } } }, - "/user/changePassword": { - "put": { + "/sysDictionary/getSysDictionaryList": { + "get": { "security": [ { "ApiKeyAuth": [] } ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "SysUser" + "SysDictionary" ], - "summary": "用户修改密码", + "summary": "分页获取SysDictionary列表", "parameters": [ { - "description": "用户修改密码", + "description": "分页获取SysDictionary列表", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/request.ChangePasswordStruct" + "$ref": "#/definitions/request.SysDictionarySearch" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -1649,8 +1673,8 @@ } } }, - "/user/deleteUser": { - "delete": { + "/sysDictionary/updateSysDictionary": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -1663,24 +1687,24 @@ "application/json" ], "tags": [ - "SysUser" + "SysDictionary" ], - "summary": "删除用户", + "summary": "更新SysDictionary", "parameters": [ { - "description": "删除用户", + "description": "更新SysDictionary", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/request.SetUserAuth" + "$ref": "#/definitions/model.SysDictionary" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } @@ -1688,7 +1712,7 @@ } } }, - "/user/getUserList": { + "/sysDictionaryDetail/createSysDictionaryDetail": { "post": { "security": [ { @@ -1702,18 +1726,18 @@ "application/json" ], "tags": [ - "SysUser" + "SysDictionaryDetail" ], - "summary": "分页获取用户列表", + "summary": "创建SysDictionaryDetail", "parameters": [ { - "description": "分页获取用户列表", + "description": "创建SysDictionaryDetail", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/request.PageInfo" + "$ref": "#/definitions/model.SysDictionaryDetail" } } ], @@ -1727,8 +1751,8 @@ } } }, - "/user/setUserAuthority": { - "post": { + "/sysDictionaryDetail/deleteSysDictionaryDetail": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -1741,24 +1765,24 @@ "application/json" ], "tags": [ - "SysUser" + "SysDictionaryDetail" ], - "summary": "设置用户权限", + "summary": "删除SysDictionaryDetail", "parameters": [ { - "description": "设置用户权限", + "description": "删除SysDictionaryDetail", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/request.SetUserAuth" + "$ref": "#/definitions/model.SysDictionaryDetail" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } @@ -1766,42 +1790,38 @@ } } }, - "/user/uploadHeaderImg": { - "post": { + "/sysDictionaryDetail/findSysDictionaryDetail": { + "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ - "multipart/form-data" + "application/json" ], "produces": [ "application/json" ], "tags": [ - "SysUser" + "SysDictionaryDetail" ], - "summary": "用户上传头像", + "summary": "用id查询SysDictionaryDetail", "parameters": [ { - "type": "file", - "description": "用户上传头像", - "name": "headerImg", - "in": "formData", - "required": true - }, - { - "type": "string", - "description": "用户上传头像", - "name": "username", - "in": "formData", - "required": true + "description": "用id查询SysDictionaryDetail", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysDictionaryDetail" + } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } @@ -1809,81 +1829,646 @@ } } }, - "/workflow/createWorkFlow": { - "post": { + "/sysDictionaryDetail/getSysDictionaryDetailList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "workflow" + "SysDictionaryDetail" ], - "summary": "注册工作流", + "summary": "分页获取SysDictionaryDetail列表", "parameters": [ { - "description": "注册工作流接口", + "description": "分页获取SysDictionaryDetail列表", "name": "data", "in": "body", "required": true, "schema": { "type": "object", - "$ref": "#/definitions/model.SysWorkflow" + "$ref": "#/definitions/request.SysDictionaryDetailSearch" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } - } - }, - "definitions": { - "config.Captcha": { - "type": "object", - "properties": { - "imgHeight": { - "type": "integer" - }, - "imgWidth": { - "type": "integer" - }, - "keyLong": { - "type": "integer" + }, + "/sysDictionaryDetail/updateSysDictionaryDetail": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysDictionaryDetail" + ], + "summary": "更新SysDictionaryDetail", + "parameters": [ + { + "description": "更新SysDictionaryDetail", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysDictionaryDetail" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "schema": { + "type": "string" + } + } } } }, - "config.Casbin": { - "type": "object", - "properties": { - "modelPath": { - "type": "string" + "/sysOperationRecord/createSysOperationRecord": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "创建SysOperationRecord", + "parameters": [ + { + "description": "创建SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysOperationRecord" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } } } }, - "config.JWT": { - "type": "object", - "properties": { - "signingKey": { - "type": "string" + "/sysOperationRecord/deleteSysOperationRecord": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "删除SysOperationRecord", + "parameters": [ + { + "description": "删除SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysOperationRecord" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "schema": { + "type": "string" + } + } } } }, - "config.Log": { - "type": "object", - "properties": { - "file": { - "type": "string" - }, - "logFile": { - "type": "boolean" - }, - "prefix": { - "type": "string" - }, + "/sysOperationRecord/findSysOperationRecord": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "用id查询SysOperationRecord", + "parameters": [ + { + "description": "用id查询SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysOperationRecord" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysOperationRecord/getSysOperationRecordList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "分页获取SysOperationRecord列表", + "parameters": [ + { + "description": "分页获取SysOperationRecord列表", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/request.SysOperationRecordSearch" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysOperationRecord/updateSysOperationRecord": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysOperationRecord" + ], + "summary": "更新SysOperationRecord", + "parameters": [ + { + "description": "更新SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysOperationRecord" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/ReloadSystem": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "system" + ], + "summary": "设置配置文件内容", + "parameters": [ + { + "description": "设置配置文件内容", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.System" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/getSystemConfig": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "system" + ], + "summary": "获取配置文件内容", + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/system/setSystemConfig": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "system" + ], + "summary": "设置配置文件内容", + "parameters": [ + { + "description": "设置配置文件内容", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.System" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/user/changePassword": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysUser" + ], + "summary": "用户修改密码", + "parameters": [ + { + "description": "用户修改密码", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/request.ChangePasswordStruct" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/user/deleteUser": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysUser" + ], + "summary": "删除用户", + "parameters": [ + { + "description": "删除用户", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/request.GetById" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/user/getUserList": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysUser" + ], + "summary": "分页获取用户列表", + "parameters": [ + { + "description": "分页获取用户列表", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/request.PageInfo" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/user/setUserAuthority": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysUser" + ], + "summary": "设置用户权限", + "parameters": [ + { + "description": "设置用户权限", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/request.SetUserAuth" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/user/uploadHeaderImg": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysUser" + ], + "summary": "用户上传头像", + "parameters": [ + { + "type": "file", + "description": "用户上传头像", + "name": "headerImg", + "in": "formData", + "required": true + }, + { + "type": "string", + "description": "用户上传头像", + "name": "username", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/workflow/createWorkFlow": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "workflow" + ], + "summary": "注册工作流", + "parameters": [ + { + "description": "注册工作流接口", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object", + "$ref": "#/definitions/model.SysWorkflow" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}", + "schema": { + "type": "string" + } + } + } + } + } + }, + "definitions": { + "config.Captcha": { + "type": "object", + "properties": { + "imgHeight": { + "type": "integer" + }, + "imgWidth": { + "type": "integer" + }, + "keyLong": { + "type": "integer" + } + } + }, + "config.Casbin": { + "type": "object", + "properties": { + "modelPath": { + "type": "string" + } + } + }, + "config.JWT": { + "type": "object", + "properties": { + "signingKey": { + "type": "string" + } + } + }, + "config.Log": { + "type": "object", + "properties": { + "file": { + "type": "string" + }, + "logFile": { + "type": "boolean" + }, + "prefix": { + "type": "string" + }, "stdout": { "type": "string" } @@ -1924,6 +2509,12 @@ "accessKey": { "type": "string" }, + "bucket": { + "type": "string" + }, + "imgPath": { + "type": "string" + }, "secretKey": { "type": "string" } @@ -2027,6 +2618,12 @@ "abbreviation": { "type": "string" }, + "autoCreateApiToSql": { + "type": "boolean" + }, + "description": { + "type": "string" + }, "fields": { "type": "array", "items": { @@ -2038,6 +2635,9 @@ }, "structName": { "type": "string" + }, + "tableName": { + "type": "string" } } }, @@ -2085,12 +2685,27 @@ "columnName": { "type": "string" }, + "comment": { + "type": "string" + }, + "dataType": { + "type": "string" + }, + "dataTypeLong": { + "type": "string" + }, + "fieldDesc": { + "type": "string" + }, "fieldJson": { "type": "string" }, "fieldName": { "type": "string" }, + "fieldSearchType": { + "type": "string" + }, "fieldType": { "type": "string" } @@ -2201,6 +2816,88 @@ } } }, + "model.SysDictionary": { + "type": "object", + "properties": { + "desc": { + "type": "string" + }, + "name": { + "type": "string" + }, + "status": { + "type": "boolean" + }, + "sysDictionaryDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/model.SysDictionaryDetail" + } + }, + "type": { + "type": "string" + } + } + }, + "model.SysDictionaryDetail": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "sort": { + "type": "integer" + }, + "status": { + "type": "boolean" + }, + "sysDictionaryID": { + "type": "integer" + }, + "value": { + "type": "integer" + } + } + }, + "model.SysOperationRecord": { + "type": "object", + "properties": { + "agent": { + "type": "string" + }, + "body": { + "type": "string" + }, + "error_message": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "latency": { + "type": "string" + }, + "method": { + "type": "string" + }, + "path": { + "type": "string" + }, + "resp": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "user": { + "type": "object", + "$ref": "#/definitions/model.SysUser" + }, + "user_id": { + "type": "integer" + } + } + }, "model.SysUser": { "type": "object", "properties": { @@ -2424,6 +3121,106 @@ } } }, + "request.SysDictionaryDetailSearch": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "sort": { + "type": "integer" + }, + "status": { + "type": "boolean" + }, + "sysDictionaryID": { + "type": "integer" + }, + "value": { + "type": "integer" + } + } + }, + "request.SysDictionarySearch": { + "type": "object", + "properties": { + "desc": { + "type": "string" + }, + "name": { + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "status": { + "type": "boolean" + }, + "sysDictionaryDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/model.SysDictionaryDetail" + } + }, + "type": { + "type": "string" + } + } + }, + "request.SysOperationRecordSearch": { + "type": "object", + "properties": { + "agent": { + "type": "string" + }, + "body": { + "type": "string" + }, + "error_message": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "latency": { + "type": "string" + }, + "method": { + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "resp": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "user": { + "type": "object", + "$ref": "#/definitions/model.SysUser" + }, + "user_id": { + "type": "integer" + } + } + }, "response.SysAuthorityCopyResponse": { "type": "object", "properties": { @@ -2432,7 +3229,7 @@ "$ref": "#/definitions/model.SysAuthority" }, "oldAuthorityId": { - "type": "integer" + "type": "string" } } } diff --git a/server/docs/swagger.yaml b/server/docs/swagger.yaml index af4fb132..8797df03 100644 --- a/server/docs/swagger.yaml +++ b/server/docs/swagger.yaml @@ -53,6 +53,10 @@ definitions: properties: accessKey: type: string + bucket: + type: string + imgPath: + type: string secretKey: type: string type: object @@ -123,6 +127,10 @@ definitions: properties: abbreviation: type: string + autoCreateApiToSql: + type: boolean + description: + type: string fields: items: $ref: '#/definitions/model.Field' @@ -131,6 +139,8 @@ definitions: type: string structName: type: string + tableName: + type: string type: object model.ExaCustomer: properties: @@ -161,10 +171,20 @@ definitions: properties: columnName: type: string + comment: + type: string + dataType: + type: string + dataTypeLong: + type: string + fieldDesc: + type: string fieldJson: type: string fieldName: type: string + fieldSearchType: + type: string fieldType: type: string type: object @@ -237,6 +257,60 @@ definitions: title: type: string type: object + model.SysDictionary: + properties: + desc: + type: string + name: + type: string + status: + type: boolean + sysDictionaryDetails: + items: + $ref: '#/definitions/model.SysDictionaryDetail' + type: array + type: + type: string + type: object + model.SysDictionaryDetail: + properties: + label: + type: string + sort: + type: integer + status: + type: boolean + sysDictionaryID: + type: integer + value: + type: integer + type: object + model.SysOperationRecord: + properties: + agent: + type: string + body: + type: string + error_message: + type: string + ip: + type: string + latency: + type: string + method: + type: string + path: + type: string + resp: + type: string + status: + type: integer + user: + $ref: '#/definitions/model.SysUser' + type: object + user_id: + type: integer + type: object model.SysUser: properties: authority: @@ -385,13 +459,79 @@ definitions: uuid: type: string type: object + request.SysDictionaryDetailSearch: + properties: + label: + type: string + page: + type: integer + pageSize: + type: integer + sort: + type: integer + status: + type: boolean + sysDictionaryID: + type: integer + value: + type: integer + type: object + request.SysDictionarySearch: + properties: + desc: + type: string + name: + type: string + page: + type: integer + pageSize: + type: integer + status: + type: boolean + sysDictionaryDetails: + items: + $ref: '#/definitions/model.SysDictionaryDetail' + type: array + type: + type: string + type: object + request.SysOperationRecordSearch: + properties: + agent: + type: string + body: + type: string + error_message: + type: string + ip: + type: string + latency: + type: string + method: + type: string + page: + type: integer + pageSize: + type: integer + path: + type: string + resp: + type: string + status: + type: integer + user: + $ref: '#/definitions/model.SysUser' + type: object + user_id: + type: integer + type: object response.SysAuthorityCopyResponse: properties: authority: $ref: '#/definitions/model.SysAuthority' type: object oldAuthorityId: - type: integer + type: string type: object info: contact: {} @@ -704,24 +844,24 @@ paths: summary: 自动代码模板 tags: - SysApi - /base/captcha: - post: + /autoCode/getDatabase: + get: consumes: - application/json produces: - application/json responses: "200": - description: '{"success":true,"data":{},"msg":"获取成功"}' + description: '{"success":true,"data":{},"msg":"创建成功"}' schema: type: string security: - ApiKeyAuth: [] - summary: 生成验证码 + summary: 获取当前表所有字段 tags: - - base - /base/captcha/: - get: + - SysApi + /base/captcha: + post: consumes: - application/json produces: @@ -733,7 +873,7 @@ paths: type: string security: - ApiKeyAuth: [] - summary: 生成验证码图片路径 + summary: 生成验证码 tags: - base /base/login: @@ -1327,6 +1467,366 @@ paths: summary: 更新菜单 tags: - menu + /sysDictionary/createSysDictionary: + post: + consumes: + - application/json + parameters: + - description: 创建SysDictionary + in: body + name: data + required: true + schema: + $ref: '#/definitions/model.SysDictionary' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"获取成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 创建SysDictionary + tags: + - SysDictionary + /sysDictionary/deleteSysDictionary: + delete: + consumes: + - application/json + parameters: + - description: 删除SysDictionary + in: body + name: data + required: true + schema: + $ref: '#/definitions/model.SysDictionary' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"删除成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 删除SysDictionary + tags: + - SysDictionary + /sysDictionary/findSysDictionary: + get: + consumes: + - application/json + parameters: + - description: 用id查询SysDictionary + in: body + name: data + required: true + schema: + $ref: '#/definitions/model.SysDictionary' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"查询成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 用id查询SysDictionary + tags: + - SysDictionary + /sysDictionary/getSysDictionaryList: + get: + consumes: + - application/json + parameters: + - description: 分页获取SysDictionary列表 + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.SysDictionarySearch' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"获取成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 分页获取SysDictionary列表 + tags: + - SysDictionary + /sysDictionary/updateSysDictionary: + put: + consumes: + - application/json + parameters: + - description: 更新SysDictionary + in: body + name: data + required: true + schema: + $ref: '#/definitions/model.SysDictionary' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"更新成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 更新SysDictionary + tags: + - SysDictionary + /sysDictionaryDetail/createSysDictionaryDetail: + post: + consumes: + - application/json + parameters: + - description: 创建SysDictionaryDetail + in: body + name: data + required: true + schema: + $ref: '#/definitions/model.SysDictionaryDetail' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"获取成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 创建SysDictionaryDetail + tags: + - SysDictionaryDetail + /sysDictionaryDetail/deleteSysDictionaryDetail: + delete: + consumes: + - application/json + parameters: + - description: 删除SysDictionaryDetail + in: body + name: data + required: true + schema: + $ref: '#/definitions/model.SysDictionaryDetail' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"删除成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 删除SysDictionaryDetail + tags: + - SysDictionaryDetail + /sysDictionaryDetail/findSysDictionaryDetail: + get: + consumes: + - application/json + parameters: + - description: 用id查询SysDictionaryDetail + in: body + name: data + required: true + schema: + $ref: '#/definitions/model.SysDictionaryDetail' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"查询成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 用id查询SysDictionaryDetail + tags: + - SysDictionaryDetail + /sysDictionaryDetail/getSysDictionaryDetailList: + get: + consumes: + - application/json + parameters: + - description: 分页获取SysDictionaryDetail列表 + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.SysDictionaryDetailSearch' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"获取成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 分页获取SysDictionaryDetail列表 + tags: + - SysDictionaryDetail + /sysDictionaryDetail/updateSysDictionaryDetail: + put: + consumes: + - application/json + parameters: + - description: 更新SysDictionaryDetail + in: body + name: data + required: true + schema: + $ref: '#/definitions/model.SysDictionaryDetail' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"更新成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 更新SysDictionaryDetail + tags: + - SysDictionaryDetail + /sysOperationRecord/createSysOperationRecord: + post: + consumes: + - application/json + parameters: + - description: 创建SysOperationRecord + in: body + name: data + required: true + schema: + $ref: '#/definitions/model.SysOperationRecord' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"获取成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 创建SysOperationRecord + tags: + - SysOperationRecord + /sysOperationRecord/deleteSysOperationRecord: + delete: + consumes: + - application/json + parameters: + - description: 删除SysOperationRecord + in: body + name: data + required: true + schema: + $ref: '#/definitions/model.SysOperationRecord' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"删除成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 删除SysOperationRecord + tags: + - SysOperationRecord + /sysOperationRecord/findSysOperationRecord: + get: + consumes: + - application/json + parameters: + - description: 用id查询SysOperationRecord + in: body + name: data + required: true + schema: + $ref: '#/definitions/model.SysOperationRecord' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"查询成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 用id查询SysOperationRecord + tags: + - SysOperationRecord + /sysOperationRecord/getSysOperationRecordList: + get: + consumes: + - application/json + parameters: + - description: 分页获取SysOperationRecord列表 + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.SysOperationRecordSearch' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"获取成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 分页获取SysOperationRecord列表 + tags: + - SysOperationRecord + /sysOperationRecord/updateSysOperationRecord: + put: + consumes: + - application/json + parameters: + - description: 更新SysOperationRecord + in: body + name: data + required: true + schema: + $ref: '#/definitions/model.SysOperationRecord' + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"更新成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 更新SysOperationRecord + tags: + - SysOperationRecord /system/ReloadSystem: post: parameters: @@ -1417,7 +1917,7 @@ paths: name: data required: true schema: - $ref: '#/definitions/request.SetUserAuth' + $ref: '#/definitions/request.GetById' type: object produces: - application/json