diff --git a/server/api/v1/example/exa_customer.go b/server/api/v1/example/exa_customer.go index 5d9ef1c026..f336adc741 100644 --- a/server/api/v1/example/exa_customer.go +++ b/server/api/v1/example/exa_customer.go @@ -147,7 +147,7 @@ func (e *CustomerApi) GetExaCustomer(c *gin.Context) { // @accept application/json // @Produce application/json // @Param data query request.PageInfo true "页码, 每页大小" -// @Success 200 {object} response.Response{data=response.PageResult,msg=string} "分页获取权限客户列表,返回包括列表,总数,页码,每页数量" +// @Success 200 {object} response.Response{data=response.PageResultT[exampleRes.ExaCustomerResponse],msg=string} "分页获取权限客户列表,返回包括列表,总数,页码,每页数量" // @Router /customer/customerList [get] func (e *CustomerApi) GetExaCustomerList(c *gin.Context) { var pageInfo request.PageInfo diff --git a/server/docs/docs.go b/server/docs/docs.go index e5fc176f35..b7fc53e87c 100644 --- a/server/docs/docs.go +++ b/server/docs/docs.go @@ -1,11 +1,7 @@ -// Code generated by swaggo/swag. DO NOT EDIT. - +// Package docs Code generated by swaggo/swag. DO NOT EDIT package docs -import ( - "github.com/flipped-aurora/gin-vue-admin/server/global" - "github.com/swaggo/swag" -) +import "github.com/swaggo/swag" const docTemplate = `{ "schemes": {{ marshal .Schemes }}, @@ -1809,9 +1805,7 @@ const docTemplate = `{ "properties": { "data": { "type": "array", - "items": { - "type": "object" - } + "items": {} }, "msg": { "type": "string" @@ -1824,6 +1818,120 @@ const docTemplate = `{ } } }, + "/autoCode/mcp": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "mcp" + ], + "summary": "自动McpTool", + "parameters": [ + { + "description": "创建自动代码", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AutoMcpTool" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/autoCode/mcpList": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "mcp" + ], + "summary": "自动McpTool", + "parameters": [ + { + "description": "创建自动代码", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AutoMcpTool" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/autoCode/mcpTest": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "mcp" + ], + "summary": "测试McpTool", + "parameters": [ + { + "description": "调用MCP Tool的参数", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"测试成功\"}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/autoCode/preview": { "post": { "security": [ @@ -2449,7 +2557,7 @@ const docTemplate = `{ "type": "object", "properties": { "data": { - "$ref": "#/definitions/response.PageResult" + "$ref": "#/definitions/response.PageResultT-response_ExaCustomerResponse" }, "msg": { "type": "string" @@ -4078,6 +4186,12 @@ const docTemplate = `{ "name": "name", "in": "query" }, + { + "type": "integer", + "description": "父级字典ID", + "name": "parentID", + "in": "query" + }, { "type": "boolean", "description": "状态", @@ -4140,6 +4254,14 @@ const docTemplate = `{ "SysDictionary" ], "summary": "分页获取SysDictionary列表", + "parameters": [ + { + "type": "string", + "description": "字典名(中)", + "name": "name", + "in": "query" + } + ], "responses": { "200": { "description": "分页获取SysDictionary列表,返回包括列表,总数,页码,每页数量", @@ -4345,6 +4467,12 @@ const docTemplate = `{ "name": "createdAt", "in": "query" }, + { + "type": "boolean", + "description": "禁用状态,根据status字段动态计算", + "name": "disabled", + "in": "query" + }, { "type": "string", "description": "扩展值", @@ -4357,6 +4485,24 @@ const docTemplate = `{ "name": "label", "in": "query" }, + { + "type": "integer", + "description": "层级深度,从0开始", + "name": "level", + "in": "query" + }, + { + "type": "integer", + "description": "父级字典详情ID", + "name": "parentID", + "in": "query" + }, + { + "type": "string", + "description": "层级路径,如 \"1,2,3\"", + "name": "path", + "in": "query" + }, { "type": "integer", "description": "排序标记", @@ -4414,7 +4560,7 @@ const docTemplate = `{ } } }, - "/sysDictionaryDetail/getSysDictionaryDetailList": { + "/sysDictionaryDetail/getDictionaryDetailsByParent": { "get": { "security": [ { @@ -4430,84 +4576,31 @@ const docTemplate = `{ "tags": [ "SysDictionaryDetail" ], - "summary": "分页获取SysDictionaryDetail列表", + "summary": "根据父级ID获取字典详情", "parameters": [ { - "type": "integer", - "description": "主键ID", - "name": "ID", - "in": "query" - }, - { - "type": "string", - "description": "创建时间", - "name": "createdAt", - "in": "query" - }, - { - "type": "string", - "description": "扩展值", - "name": "extend", - "in": "query" - }, - { - "type": "string", - "description": "关键字", - "name": "keyword", - "in": "query" - }, - { - "type": "string", - "description": "展示值", - "name": "label", - "in": "query" - }, - { - "type": "integer", - "description": "页码", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "每页大小", - "name": "pageSize", + "type": "boolean", + "description": "是否包含子级数据", + "name": "includeChildren", "in": "query" }, { "type": "integer", - "description": "排序标记", - "name": "sort", - "in": "query" - }, - { - "type": "boolean", - "description": "启用状态", - "name": "status", + "description": "父级字典详情ID,为空时获取顶级", + "name": "parentID", "in": "query" }, { "type": "integer", - "description": "关联标记", + "description": "字典ID", "name": "sysDictionaryID", - "in": "query" - }, - { - "type": "string", - "description": "更新时间", - "name": "updatedAt", - "in": "query" - }, - { - "type": "string", - "description": "字典值", - "name": "value", - "in": "query" + "in": "query", + "required": true } ], "responses": { "200": { - "description": "分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量", + "description": "获取字典详情列表", "schema": { "allOf": [ { @@ -4517,7 +4610,10 @@ const docTemplate = `{ "type": "object", "properties": { "data": { - "$ref": "#/definitions/response.PageResult" + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } }, "msg": { "type": "string" @@ -4530,8 +4626,8 @@ const docTemplate = `{ } } }, - "/sysDictionaryDetail/updateSysDictionaryDetail": { - "put": { + "/sysDictionaryDetail/getDictionaryPath": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -4546,21 +4642,19 @@ const docTemplate = `{ "tags": [ "SysDictionaryDetail" ], - "summary": "更新SysDictionaryDetail", + "summary": "获取字典详情的完整路径", "parameters": [ { - "description": "更新SysDictionaryDetail", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysDictionaryDetail" - } + "type": "integer", + "description": "字典详情ID", + "name": "id", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "更新SysDictionaryDetail", + "description": "获取字典详情路径", "schema": { "allOf": [ { @@ -4569,6 +4663,12 @@ const docTemplate = `{ { "type": "object", "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + }, "msg": { "type": "string" } @@ -4580,7 +4680,7 @@ const docTemplate = `{ } } }, - "/sysExportTemplate/ExportTemplate": { + "/sysDictionaryDetail/getDictionaryTreeList": { "get": { "security": [ { @@ -4594,35 +4694,351 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysExportTemplate" + "SysDictionaryDetail" ], - "summary": "导出表格模板", - "responses": {} - } - }, - "/sysExportTemplate/createSysExportTemplate": { - "post": { - "security": [ + "summary": "获取字典详情树形结构", + "parameters": [ { - "ApiKeyAuth": [] + "type": "integer", + "description": "字典ID", + "name": "sysDictionaryID", + "in": "query", + "required": true } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysExportTemplate" - ], - "summary": "创建导出模板", - "parameters": [ - { - "description": "创建导出模板", - "name": "data", - "in": "body", - "required": true, + "responses": { + "200": { + "description": "获取字典详情树形结构", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/sysDictionaryDetail/getDictionaryTreeListByType": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysDictionaryDetail" + ], + "summary": "根据字典类型获取字典详情树形结构", + "parameters": [ + { + "type": "string", + "description": "字典类型", + "name": "type", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "获取字典详情树形结构", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/sysDictionaryDetail/getSysDictionaryDetailList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysDictionaryDetail" + ], + "summary": "分页获取SysDictionaryDetail列表", + "parameters": [ + { + "type": "integer", + "description": "主键ID", + "name": "ID", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "createdAt", + "in": "query" + }, + { + "type": "boolean", + "description": "禁用状态,根据status字段动态计算", + "name": "disabled", + "in": "query" + }, + { + "type": "string", + "description": "扩展值", + "name": "extend", + "in": "query" + }, + { + "type": "string", + "description": "关键字", + "name": "keyword", + "in": "query" + }, + { + "type": "string", + "description": "展示值", + "name": "label", + "in": "query" + }, + { + "type": "integer", + "description": "层级深度,用于查询指定层级的数据", + "name": "level", + "in": "query" + }, + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "每页大小", + "name": "pageSize", + "in": "query" + }, + { + "type": "integer", + "description": "父级字典详情ID,用于查询指定父级下的子项", + "name": "parentID", + "in": "query" + }, + { + "type": "string", + "description": "层级路径,如 \"1,2,3\"", + "name": "path", + "in": "query" + }, + { + "type": "integer", + "description": "排序标记", + "name": "sort", + "in": "query" + }, + { + "type": "boolean", + "description": "启用状态", + "name": "status", + "in": "query" + }, + { + "type": "integer", + "description": "关联标记", + "name": "sysDictionaryID", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "updatedAt", + "in": "query" + }, + { + "type": "string", + "description": "字典值", + "name": "value", + "in": "query" + } + ], + "responses": { + "200": { + "description": "分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.PageResult" + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/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": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + } + ], + "responses": { + "200": { + "description": "更新SysDictionaryDetail", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/sysExportTemplate/createSysExportTemplate": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "创建导出模板", + "parameters": [ + { + "description": "创建导出模板", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysExportTemplate" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysExportTemplate/deleteSysExportTemplate": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "删除导出模板", + "parameters": [ + { + "description": "删除导出模板", + "name": "data", + "in": "body", + "required": true, "schema": { "$ref": "#/definitions/system.SysExportTemplate" } @@ -4630,7 +5046,327 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysExportTemplate/deleteSysExportTemplateByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "批量删除导出模板", + "parameters": [ + { + "description": "批量删除导出模板", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysExportTemplate/exportExcel": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "导出表格", + "responses": {} + } + }, + "/sysExportTemplate/exportExcelByToken": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "ExportExcelByToken" + ], + "summary": "导出表格", + "responses": {} + } + }, + "/sysExportTemplate/exportTemplate": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "导出表格模板", + "responses": {} + } + }, + "/sysExportTemplate/exportTemplateByToken": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "ExportTemplateByToken" + ], + "summary": "通过token导出表格模板", + "responses": {} + } + }, + "/sysExportTemplate/findSysExportTemplate": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "用id查询导出模板", + "parameters": [ + { + "type": "integer", + "description": "主键ID", + "name": "ID", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "createdAt", + "in": "query" + }, + { + "type": "string", + "description": "数据库名称", + "name": "dbName", + "in": "query" + }, + { + "type": "integer", + "name": "limit", + "in": "query" + }, + { + "type": "string", + "description": "模板名称", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "order", + "in": "query" + }, + { + "type": "string", + "description": "表名称", + "name": "tableName", + "in": "query" + }, + { + "type": "string", + "description": "模板标识", + "name": "templateID", + "in": "query" + }, + { + "type": "string", + "description": "模板信息", + "name": "templateInfo", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "updatedAt", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysExportTemplate/getSysExportTemplateList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "分页获取导出模板列表", + "parameters": [ + { + "type": "integer", + "description": "主键ID", + "name": "ID", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "createdAt", + "in": "query" + }, + { + "type": "string", + "description": "数据库名称", + "name": "dbName", + "in": "query" + }, + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "string", + "description": "关键字", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "name": "limit", + "in": "query" + }, + { + "type": "string", + "description": "模板名称", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "order", + "in": "query" + }, + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "每页大小", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + }, + { + "type": "string", + "description": "表名称", + "name": "tableName", + "in": "query" + }, + { + "type": "string", + "description": "模板标识", + "name": "templateID", + "in": "query" + }, + { + "type": "string", + "description": "模板信息", + "name": "templateInfo", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "updatedAt", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } @@ -4638,8 +5374,28 @@ const docTemplate = `{ } } }, - "/sysExportTemplate/deleteSysExportTemplate": { - "delete": { + "/sysExportTemplate/importExcel": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysImportTemplate" + ], + "summary": "导入表格", + "responses": {} + } + }, + "/sysExportTemplate/updateSysExportTemplate": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -4654,10 +5410,10 @@ const docTemplate = `{ "tags": [ "SysExportTemplate" ], - "summary": "删除导出模板", + "summary": "更新导出模板", "parameters": [ { - "description": "删除导出模板", + "description": "更新导出模板", "name": "data", "in": "body", "required": true, @@ -4668,7 +5424,7 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } @@ -4676,7 +5432,7 @@ const docTemplate = `{ } } }, - "/sysExportTemplate/deleteSysExportTemplateByIds": { + "/sysOperationRecord/deleteSysOperationRecord": { "delete": { "security": [ { @@ -4690,32 +5446,44 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysExportTemplate" + "SysOperationRecord" ], - "summary": "批量删除导出模板", + "summary": "删除SysOperationRecord", "parameters": [ { - "description": "批量删除导出模板", + "description": "SysOperationRecord模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.IdsReq" + "$ref": "#/definitions/system.SysOperationRecord" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", + "description": "删除SysOperationRecord", "schema": { - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] } } } } }, - "/sysExportTemplate/exportExcel": { - "get": { + "/sysOperationRecord/deleteSysOperationRecordByIds": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -4728,13 +5496,43 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysExportTemplate" + "SysOperationRecord" ], - "summary": "导出表格", - "responses": {} + "summary": "批量删除SysOperationRecord", + "parameters": [ + { + "description": "批量删除SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "批量删除SysOperationRecord", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } } }, - "/sysExportTemplate/findSysExportTemplate": { + "/sysOperationRecord/findSysOperationRecord": { "get": { "security": [ { @@ -4748,9 +5546,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysExportTemplate" + "SysOperationRecord" ], - "summary": "用id查询导出模板", + "summary": "用id查询SysOperationRecord", "parameters": [ { "type": "integer", @@ -4758,6 +5556,18 @@ const docTemplate = `{ "name": "ID", "in": "query" }, + { + "type": "string", + "description": "代理", + "name": "agent", + "in": "query" + }, + { + "type": "string", + "description": "请求Body", + "name": "body", + "in": "query" + }, { "type": "string", "description": "创建时间", @@ -4766,42 +5576,44 @@ const docTemplate = `{ }, { "type": "string", - "description": "数据库名称", - "name": "dbName", + "description": "错误信息", + "name": "error_message", "in": "query" }, { - "type": "integer", - "name": "limit", + "type": "string", + "description": "请求ip", + "name": "ip", "in": "query" }, { "type": "string", - "description": "模板名称", - "name": "name", + "description": "延迟", + "name": "latency", "in": "query" }, { "type": "string", - "name": "order", + "description": "请求方法", + "name": "method", "in": "query" }, { "type": "string", - "description": "表名称", - "name": "tableName", + "description": "请求路径", + "name": "path", "in": "query" }, { "type": "string", - "description": "模板标识", - "name": "templateID", + "description": "响应Body", + "name": "resp", "in": "query" }, { - "type": "string", - "description": "模板信息", - "name": "templateInfo", + "type": "integer", + "description": "请求状态", + "name": "status", "in": "query" }, { @@ -4809,19 +5621,41 @@ const docTemplate = `{ "description": "更新时间", "name": "updatedAt", "in": "query" + }, + { + "type": "integer", + "description": "用户id", + "name": "user_id", + "in": "query" } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "description": "用id查询SysOperationRecord", "schema": { - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "object", + "additionalProperties": true + }, + "msg": { + "type": "string" + } + } + } + ] } } } } }, - "/sysExportTemplate/getSysExportTemplateList": { + "/sysOperationRecord/getSysOperationRecordList": { "get": { "security": [ { @@ -4835,9 +5669,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysExportTemplate" + "SysOperationRecord" ], - "summary": "分页获取导出模板列表", + "summary": "分页获取SysOperationRecord列表", "parameters": [ { "type": "integer", @@ -4845,6 +5679,18 @@ const docTemplate = `{ "name": "ID", "in": "query" }, + { + "type": "string", + "description": "代理", + "name": "agent", + "in": "query" + }, + { + "type": "string", + "description": "请求Body", + "name": "body", + "in": "query" + }, { "type": "string", "description": "创建时间", @@ -4853,13 +5699,14 @@ const docTemplate = `{ }, { "type": "string", - "description": "数据库名称", - "name": "dbName", + "description": "错误信息", + "name": "error_message", "in": "query" }, { "type": "string", - "name": "endCreatedAt", + "description": "请求ip", + "name": "ip", "in": "query" }, { @@ -4868,20 +5715,16 @@ const docTemplate = `{ "name": "keyword", "in": "query" }, - { - "type": "integer", - "name": "limit", - "in": "query" - }, { "type": "string", - "description": "模板名称", - "name": "name", + "description": "延迟", + "name": "latency", "in": "query" }, { "type": "string", - "name": "order", + "description": "请求方法", + "name": "method", "in": "query" }, { @@ -4898,25 +5741,20 @@ const docTemplate = `{ }, { "type": "string", - "name": "startCreatedAt", - "in": "query" - }, - { - "type": "string", - "description": "表名称", - "name": "tableName", + "description": "请求路径", + "name": "path", "in": "query" }, { "type": "string", - "description": "模板标识", - "name": "templateID", + "description": "响应Body", + "name": "resp", "in": "query" }, { - "type": "string", - "description": "模板信息", - "name": "templateInfo", + "type": "integer", + "description": "请求状态", + "name": "status", "in": "query" }, { @@ -4924,77 +5762,40 @@ const docTemplate = `{ "description": "更新时间", "name": "updatedAt", "in": "query" - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/sysExportTemplate/importExcel": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysImportTemplate" - ], - "summary": "导入表格", - "responses": {} - } - }, - "/sysExportTemplate/updateSysExportTemplate": { - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysExportTemplate" - ], - "summary": "更新导出模板", - "parameters": [ + }, { - "description": "更新导出模板", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysExportTemplate" - } + "type": "integer", + "description": "用户id", + "name": "user_id", + "in": "query" } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "description": "分页获取SysOperationRecord列表,返回包括列表,总数,页码,每页数量", "schema": { - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.PageResult" + }, + "msg": { + "type": "string" + } + } + } + ] } } } } }, - "/sysOperationRecord/createSysOperationRecord": { + "/sysParams/createSysParams": { "post": { "security": [ { @@ -5008,23 +5809,23 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysOperationRecord" + "SysParams" ], - "summary": "创建SysOperationRecord", + "summary": "创建参数", "parameters": [ { - "description": "创建SysOperationRecord", + "description": "创建参数", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysOperationRecord" + "$ref": "#/definitions/system.SysParams" } } ], "responses": { "200": { - "description": "创建SysOperationRecord", + "description": "创建成功", "schema": { "allOf": [ { @@ -5044,7 +5845,7 @@ const docTemplate = `{ } } }, - "/sysOperationRecord/deleteSysOperationRecord": { + "/sysParams/deleteSysParams": { "delete": { "security": [ { @@ -5058,23 +5859,23 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysOperationRecord" + "SysParams" ], - "summary": "删除SysOperationRecord", + "summary": "删除参数", "parameters": [ { - "description": "SysOperationRecord模型", + "description": "删除参数", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysOperationRecord" + "$ref": "#/definitions/system.SysParams" } } ], "responses": { "200": { - "description": "删除SysOperationRecord", + "description": "删除成功", "schema": { "allOf": [ { @@ -5094,7 +5895,7 @@ const docTemplate = `{ } } }, - "/sysOperationRecord/deleteSysOperationRecordByIds": { + "/sysParams/deleteSysParamsByIds": { "delete": { "security": [ { @@ -5108,23 +5909,12 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysOperationRecord" - ], - "summary": "批量删除SysOperationRecord", - "parameters": [ - { - "description": "批量删除SysOperationRecord", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.IdsReq" - } - } + "SysParams" ], + "summary": "批量删除参数", "responses": { "200": { - "description": "批量删除SysOperationRecord", + "description": "批量删除成功", "schema": { "allOf": [ { @@ -5144,7 +5934,7 @@ const docTemplate = `{ } } }, - "/sysOperationRecord/findSysOperationRecord": { + "/sysParams/findSysParams": { "get": { "security": [ { @@ -5158,9 +5948,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysOperationRecord" + "SysParams" ], - "summary": "用id查询SysOperationRecord", + "summary": "用id查询参数", "parameters": [ { "type": "integer", @@ -5168,18 +5958,6 @@ const docTemplate = `{ "name": "ID", "in": "query" }, - { - "type": "string", - "description": "代理", - "name": "agent", - "in": "query" - }, - { - "type": "string", - "description": "请求Body", - "name": "body", - "in": "query" - }, { "type": "string", "description": "创建时间", @@ -5188,45 +5966,23 @@ const docTemplate = `{ }, { "type": "string", - "description": "错误信息", - "name": "error_message", - "in": "query" - }, - { - "type": "string", - "description": "请求ip", - "name": "ip", - "in": "query" - }, - { - "type": "string", - "description": "延迟", - "name": "latency", - "in": "query" - }, - { - "type": "string", - "description": "请求方法", - "name": "method", - "in": "query" - }, - { - "type": "string", - "description": "请求路径", - "name": "path", + "description": "参数说明", + "name": "desc", "in": "query" }, { "type": "string", - "description": "响应Body", - "name": "resp", - "in": "query" + "description": "参数键", + "name": "key", + "in": "query", + "required": true }, - { - "type": "integer", - "description": "请求状态", - "name": "status", - "in": "query" + { + "type": "string", + "description": "参数名称", + "name": "name", + "in": "query", + "required": true }, { "type": "string", @@ -5235,15 +5991,16 @@ const docTemplate = `{ "in": "query" }, { - "type": "integer", - "description": "用户id", - "name": "user_id", - "in": "query" + "type": "string", + "description": "参数值", + "name": "value", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "用id查询SysOperationRecord", + "description": "查询成功", "schema": { "allOf": [ { @@ -5253,8 +6010,7 @@ const docTemplate = `{ "type": "object", "properties": { "data": { - "type": "object", - "additionalProperties": true + "$ref": "#/definitions/system.SysParams" }, "msg": { "type": "string" @@ -5267,7 +6023,7 @@ const docTemplate = `{ } } }, - "/sysOperationRecord/getSysOperationRecordList": { + "/sysParams/getSysParam": { "get": { "security": [ { @@ -5281,44 +6037,69 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysOperationRecord" + "SysParams" ], - "summary": "分页获取SysOperationRecord列表", + "summary": "根据key获取参数value", "parameters": [ - { - "type": "integer", - "description": "主键ID", - "name": "ID", - "in": "query" - }, { "type": "string", - "description": "代理", - "name": "agent", - "in": "query" - }, - { - "type": "string", - "description": "请求Body", - "name": "body", - "in": "query" - }, + "description": "key", + "name": "key", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "获取成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/system.SysParams" + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/sysParams/getSysParamsList": { + "get": { + "security": [ { - "type": "string", - "description": "创建时间", - "name": "createdAt", - "in": "query" - }, + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysParams" + ], + "summary": "分页获取参数列表", + "parameters": [ { "type": "string", - "description": "错误信息", - "name": "error_message", + "name": "endCreatedAt", "in": "query" }, { "type": "string", - "description": "请求ip", - "name": "ip", + "name": "key", "in": "query" }, { @@ -5329,14 +6110,7 @@ const docTemplate = `{ }, { "type": "string", - "description": "延迟", - "name": "latency", - "in": "query" - }, - { - "type": "string", - "description": "请求方法", - "name": "method", + "name": "name", "in": "query" }, { @@ -5353,38 +6127,13 @@ const docTemplate = `{ }, { "type": "string", - "description": "请求路径", - "name": "path", - "in": "query" - }, - { - "type": "string", - "description": "响应Body", - "name": "resp", - "in": "query" - }, - { - "type": "integer", - "description": "请求状态", - "name": "status", - "in": "query" - }, - { - "type": "string", - "description": "更新时间", - "name": "updatedAt", - "in": "query" - }, - { - "type": "integer", - "description": "用户id", - "name": "user_id", + "name": "startCreatedAt", "in": "query" } ], "responses": { "200": { - "description": "分页获取SysOperationRecord列表,返回包括列表,总数,页码,每页数量", + "description": "获取成功", "schema": { "allOf": [ { @@ -5407,8 +6156,8 @@ const docTemplate = `{ } } }, - "/sysParams/createSysParams": { - "post": { + "/sysParams/updateSysParams": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -5423,10 +6172,10 @@ const docTemplate = `{ "tags": [ "SysParams" ], - "summary": "创建参数", + "summary": "更新参数", "parameters": [ { - "description": "创建参数", + "description": "更新参数", "name": "data", "in": "body", "required": true, @@ -5437,7 +6186,7 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "创建成功", + "description": "更新成功", "schema": { "allOf": [ { @@ -5457,7 +6206,7 @@ const docTemplate = `{ } } }, - "/sysParams/deleteSysParams": { + "/sysVersion/deleteSysVersion": { "delete": { "security": [ { @@ -5471,17 +6220,17 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysParams" + "SysVersion" ], - "summary": "删除参数", + "summary": "删除版本管理", "parameters": [ { - "description": "删除参数", + "description": "删除版本管理", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysParams" + "$ref": "#/definitions/system.SysVersion" } } ], @@ -5507,7 +6256,7 @@ const docTemplate = `{ } } }, - "/sysParams/deleteSysParamsByIds": { + "/sysVersion/deleteSysVersionByIds": { "delete": { "security": [ { @@ -5521,9 +6270,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysParams" + "SysVersion" ], - "summary": "批量删除参数", + "summary": "批量删除版本管理", "responses": { "200": { "description": "批量删除成功", @@ -5546,7 +6295,7 @@ const docTemplate = `{ } } }, - "/sysParams/findSysParams": { + "/sysVersion/downloadVersionJson": { "get": { "security": [ { @@ -5560,59 +6309,21 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysParams" + "SysVersion" ], - "summary": "用id查询参数", + "summary": "下载版本JSON数据", "parameters": [ - { - "type": "integer", - "description": "主键ID", - "name": "ID", - "in": "query" - }, - { - "type": "string", - "description": "创建时间", - "name": "createdAt", - "in": "query" - }, - { - "type": "string", - "description": "参数说明", - "name": "desc", - "in": "query" - }, - { - "type": "string", - "description": "参数键", - "name": "key", - "in": "query", - "required": true - }, - { - "type": "string", - "description": "参数名称", - "name": "name", - "in": "query", - "required": true - }, { "type": "string", - "description": "更新时间", - "name": "updatedAt", - "in": "query" - }, - { - "type": "string", - "description": "参数值", - "name": "value", + "description": "版本ID", + "name": "ID", "in": "query", "required": true } ], "responses": { "200": { - "description": "查询成功", + "description": "下载成功", "schema": { "allOf": [ { @@ -5622,7 +6333,7 @@ const docTemplate = `{ "type": "object", "properties": { "data": { - "$ref": "#/definitions/system.SysParams" + "type": "object" }, "msg": { "type": "string" @@ -5635,7 +6346,57 @@ const docTemplate = `{ } } }, - "/sysParams/getSysParam": { + "/sysVersion/exportVersion": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysVersion" + ], + "summary": "创建发版数据", + "parameters": [ + { + "description": "创建发版数据", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.ExportVersionRequest" + } + } + ], + "responses": { + "200": { + "description": "创建成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/sysVersion/findSysVersion": { "get": { "security": [ { @@ -5649,21 +6410,21 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysParams" + "SysVersion" ], - "summary": "根据key获取参数value", + "summary": "用id查询版本管理", "parameters": [ { - "type": "string", - "description": "key", - "name": "key", + "type": "integer", + "description": "用id查询版本管理", + "name": "ID", "in": "query", "required": true } ], "responses": { "200": { - "description": "获取成功", + "description": "查询成功", "schema": { "allOf": [ { @@ -5673,7 +6434,7 @@ const docTemplate = `{ "type": "object", "properties": { "data": { - "$ref": "#/definitions/system.SysParams" + "$ref": "#/definitions/system.SysVersion" }, "msg": { "type": "string" @@ -5686,7 +6447,7 @@ const docTemplate = `{ } } }, - "/sysParams/getSysParamsList": { + "/sysVersion/getSysVersionList": { "get": { "security": [ { @@ -5700,18 +6461,17 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysParams" + "SysVersion" ], - "summary": "分页获取参数列表", + "summary": "分页获取版本管理列表", "parameters": [ { - "type": "string", - "name": "endCreatedAt", - "in": "query" - }, - { - "type": "string", - "name": "key", + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "name": "createdAtRange", "in": "query" }, { @@ -5720,11 +6480,6 @@ const docTemplate = `{ "name": "keyword", "in": "query" }, - { - "type": "string", - "name": "name", - "in": "query" - }, { "type": "integer", "description": "页码", @@ -5739,7 +6494,12 @@ const docTemplate = `{ }, { "type": "string", - "name": "startCreatedAt", + "name": "versionCode", + "in": "query" + }, + { + "type": "string", + "name": "versionName", "in": "query" } ], @@ -5768,8 +6528,45 @@ const docTemplate = `{ } } }, - "/sysParams/updateSysParams": { - "put": { + "/sysVersion/getSysVersionPublic": { + "get": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysVersion" + ], + "summary": "不需要鉴权的版本管理接口", + "responses": { + "200": { + "description": "获取成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "object" + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/sysVersion/importVersion": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -5782,23 +6579,23 @@ const docTemplate = `{ "application/json" ], "tags": [ - "SysParams" + "SysVersion" ], - "summary": "更新参数", + "summary": "导入版本数据", "parameters": [ { - "description": "更新参数", + "description": "版本JSON数据", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysParams" + "$ref": "#/definitions/request.ImportVersionRequest" } } ], "responses": { "200": { - "description": "更新成功", + "description": "导入成功", "schema": { "allOf": [ { @@ -5910,10 +6707,10 @@ const docTemplate = `{ "tags": [ "System" ], - "summary": "重启系统", + "summary": "重载系统", "responses": { "200": { - "description": "重启系统", + "description": "重载系统", "schema": { "allOf": [ { @@ -6659,7 +7456,7 @@ const docTemplate = `{ "type": "integer" }, "open-captcha": { - "description": "防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码此数,如3代表错误三次后出现验证码", + "description": "防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码次数,如3代表错误三次后出现验证码", "type": "integer" }, "open-captcha-timeout": { @@ -6761,6 +7558,39 @@ const docTemplate = `{ } } }, + "config.MCP": { + "type": "object", + "properties": { + "addr": { + "description": "独立MCP服务端口", + "type": "integer" + }, + "message_path": { + "description": "消息路径", + "type": "string" + }, + "name": { + "description": "MCP名称", + "type": "string" + }, + "separate": { + "description": "是否独立运行MCP服务", + "type": "boolean" + }, + "sse_path": { + "description": "SSE路径", + "type": "string" + }, + "url_prefix": { + "description": "URL前缀", + "type": "string" + }, + "version": { + "description": "MCP版本", + "type": "string" + } + } + }, "config.Minio": { "type": "object", "properties": { @@ -7216,6 +8046,14 @@ const docTemplate = `{ } ] }, + "mcp": { + "description": "MCP配置", + "allOf": [ + { + "$ref": "#/definitions/config.MCP" + } + ] + }, "minio": { "$ref": "#/definitions/config.Minio" }, @@ -7401,6 +8239,10 @@ const docTemplate = `{ "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql", "type": "string" }, + "disable-auto-migrate": { + "description": "自动迁移数据库表结构,生产环境建议设为false,手动迁移", + "type": "boolean" + }, "iplimit-count": { "type": "integer" }, @@ -7678,6 +8520,10 @@ const docTemplate = `{ "description": "服务器地址 例如 smtp.qq.com 请前往QQ或者你要发邮件的邮箱查看其smtp协议", "type": "string" }, + "is-loginauth": { + "description": "是否LoginAuth 是否使用LoginAuth认证方式(适用于IBM、微软邮箱服务器等)", + "type": "boolean" + }, "is-ssl": { "description": "是否SSL 是否开启SSL", "type": "boolean" @@ -7964,6 +8810,65 @@ const docTemplate = `{ } } }, + "request.AutoMcpTool": { + "type": "object", + "required": [ + "description", + "name" + ], + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "params": { + "type": "array", + "items": { + "type": "object", + "required": [ + "description", + "name", + "type" + ], + "properties": { + "default": { + "type": "string" + }, + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "required": { + "type": "boolean" + }, + "type": { + "description": "string, number, boolean, object, array", + "type": "string" + } + } + } + }, + "response": { + "type": "array", + "items": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "text, image", + "type": "string" + } + } + } + } + } + }, "request.CasbinInReceive": { "type": "object", "properties": { @@ -8052,6 +8957,48 @@ const docTemplate = `{ } } }, + "request.ExportVersionRequest": { + "type": "object", + "required": [ + "versionCode", + "versionName" + ], + "properties": { + "apiIds": { + "description": "选中的API ID列表", + "type": "array", + "items": { + "type": "integer" + } + }, + "description": { + "description": "版本描述", + "type": "string" + }, + "dictIds": { + "description": "选中的字典ID列表", + "type": "array", + "items": { + "type": "integer" + } + }, + "menuIds": { + "description": "选中的菜单ID列表", + "type": "array", + "items": { + "type": "integer" + } + }, + "versionCode": { + "description": "版本号", + "type": "string" + }, + "versionName": { + "description": "版本名称", + "type": "string" + } + } + }, "request.GetAuthorityId": { "type": "object", "properties": { @@ -8110,6 +9057,43 @@ const docTemplate = `{ } } }, + "request.ImportVersionRequest": { + "type": "object", + "required": [ + "version" + ], + "properties": { + "apis": { + "description": "API数据,直接复用SysApi", + "type": "array", + "items": { + "$ref": "#/definitions/system.SysApi" + } + }, + "dictionaries": { + "description": "字典数据,直接复用SysDictionary", + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionary" + } + }, + "menus": { + "description": "菜单数据,直接复用SysBaseMenu", + "type": "array", + "items": { + "$ref": "#/definitions/system.SysBaseMenu" + } + }, + "version": { + "description": "版本信息", + "allOf": [ + { + "$ref": "#/definitions/request.VersionInfo" + } + ] + } + } + }, "request.InitDB": { "type": "object", "required": [ @@ -8369,6 +9353,31 @@ const docTemplate = `{ } } }, + "request.VersionInfo": { + "type": "object", + "required": [ + "code", + "name" + ], + "properties": { + "code": { + "description": "版本号", + "type": "string" + }, + "description": { + "description": "版本描述", + "type": "string" + }, + "exportTime": { + "description": "导出时间", + "type": "string" + }, + "name": { + "description": "版本名称", + "type": "string" + } + } + }, "response.Email": { "type": "object", "properties": { @@ -8447,6 +9456,26 @@ const docTemplate = `{ } } }, + "response.PageResultT-response_ExaCustomerResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/response.ExaCustomerResponse" + } + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "total": { + "type": "integer" + } + } + }, "response.PolicyPathResponse": { "type": "object", "properties": { @@ -8666,6 +9695,10 @@ const docTemplate = `{ "title": { "description": "菜单名", "type": "string" + }, + "transitionType": { + "description": "路由切换动画", + "type": "string" } } }, @@ -8890,6 +9923,13 @@ const docTemplate = `{ "description": "主键ID", "type": "integer" }, + "children": { + "description": "子字典", + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionary" + } + }, "createdAt": { "description": "创建时间", "type": "string" @@ -8902,6 +9942,10 @@ const docTemplate = `{ "description": "字典名(中)", "type": "string" }, + "parentID": { + "description": "父级字典ID", + "type": "integer" + }, "status": { "description": "状态", "type": "boolean" @@ -8929,10 +9973,21 @@ const docTemplate = `{ "description": "主键ID", "type": "integer" }, + "children": { + "description": "子字典详情", + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + }, "createdAt": { "description": "创建时间", "type": "string" }, + "disabled": { + "description": "禁用状态,根据status字段动态计算", + "type": "boolean" + }, "extend": { "description": "扩展值", "type": "string" @@ -8941,6 +9996,18 @@ const docTemplate = `{ "description": "展示值", "type": "string" }, + "level": { + "description": "层级深度,从0开始", + "type": "integer" + }, + "parentID": { + "description": "父级字典详情ID", + "type": "integer" + }, + "path": { + "description": "层级路径,如 \"1,2,3\"", + "type": "string" + }, "sort": { "description": "排序标记", "type": "integer" @@ -9270,6 +10337,43 @@ const docTemplate = `{ } } }, + "system.SysVersion": { + "type": "object", + "required": [ + "versionCode", + "versionName" + ], + "properties": { + "ID": { + "description": "主键ID", + "type": "integer" + }, + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "description": { + "description": "版本描述", + "type": "string" + }, + "updatedAt": { + "description": "更新时间", + "type": "string" + }, + "versionCode": { + "description": "版本号", + "type": "string" + }, + "versionData": { + "description": "版本数据", + "type": "string" + }, + "versionName": { + "description": "版本名称", + "type": "string" + } + } + }, "system.System": { "type": "object", "properties": { @@ -9299,7 +10403,7 @@ const docTemplate = `{ // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ - Version: global.Version, + Version: "v2.8.6", Host: "", BasePath: "", Schemes: []string{}, @@ -9307,6 +10411,8 @@ var SwaggerInfo = &swag.Spec{ Description: "使用gin+vue进行极速开发的全栈开发基础平台", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, + LeftDelim: "{{", + RightDelim: "}}", } func init() { diff --git a/server/docs/swagger.json b/server/docs/swagger.json index 9eb3da45ab..c4b41b2272 100644 --- a/server/docs/swagger.json +++ b/server/docs/swagger.json @@ -4,7 +4,7 @@ "description": "使用gin+vue进行极速开发的全栈开发基础平台", "title": "Gin-Vue-Admin Swagger API接口文档", "contact": {}, - "version": "v2.7.9-beta" + "version": "v2.8.6" }, "paths": { "/api/createApi": { @@ -1797,9 +1797,7 @@ "properties": { "data": { "type": "array", - "items": { - "type": "object" - } + "items": {} }, "msg": { "type": "string" @@ -1812,6 +1810,120 @@ } } }, + "/autoCode/mcp": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "mcp" + ], + "summary": "自动McpTool", + "parameters": [ + { + "description": "创建自动代码", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AutoMcpTool" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/autoCode/mcpList": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "mcp" + ], + "summary": "自动McpTool", + "parameters": [ + { + "description": "创建自动代码", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AutoMcpTool" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/autoCode/mcpTest": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "mcp" + ], + "summary": "测试McpTool", + "parameters": [ + { + "description": "调用MCP Tool的参数", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"测试成功\"}", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/autoCode/preview": { "post": { "security": [ @@ -2437,7 +2549,7 @@ "type": "object", "properties": { "data": { - "$ref": "#/definitions/response.PageResult" + "$ref": "#/definitions/response.PageResultT-response_ExaCustomerResponse" }, "msg": { "type": "string" @@ -4066,6 +4178,12 @@ "name": "name", "in": "query" }, + { + "type": "integer", + "description": "父级字典ID", + "name": "parentID", + "in": "query" + }, { "type": "boolean", "description": "状态", @@ -4128,6 +4246,14 @@ "SysDictionary" ], "summary": "分页获取SysDictionary列表", + "parameters": [ + { + "type": "string", + "description": "字典名(中)", + "name": "name", + "in": "query" + } + ], "responses": { "200": { "description": "分页获取SysDictionary列表,返回包括列表,总数,页码,每页数量", @@ -4333,6 +4459,12 @@ "name": "createdAt", "in": "query" }, + { + "type": "boolean", + "description": "禁用状态,根据status字段动态计算", + "name": "disabled", + "in": "query" + }, { "type": "string", "description": "扩展值", @@ -4345,6 +4477,24 @@ "name": "label", "in": "query" }, + { + "type": "integer", + "description": "层级深度,从0开始", + "name": "level", + "in": "query" + }, + { + "type": "integer", + "description": "父级字典详情ID", + "name": "parentID", + "in": "query" + }, + { + "type": "string", + "description": "层级路径,如 \"1,2,3\"", + "name": "path", + "in": "query" + }, { "type": "integer", "description": "排序标记", @@ -4402,7 +4552,7 @@ } } }, - "/sysDictionaryDetail/getSysDictionaryDetailList": { + "/sysDictionaryDetail/getDictionaryDetailsByParent": { "get": { "security": [ { @@ -4418,84 +4568,31 @@ "tags": [ "SysDictionaryDetail" ], - "summary": "分页获取SysDictionaryDetail列表", + "summary": "根据父级ID获取字典详情", "parameters": [ { - "type": "integer", - "description": "主键ID", - "name": "ID", - "in": "query" - }, - { - "type": "string", - "description": "创建时间", - "name": "createdAt", - "in": "query" - }, - { - "type": "string", - "description": "扩展值", - "name": "extend", - "in": "query" - }, - { - "type": "string", - "description": "关键字", - "name": "keyword", - "in": "query" - }, - { - "type": "string", - "description": "展示值", - "name": "label", - "in": "query" - }, - { - "type": "integer", - "description": "页码", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "每页大小", - "name": "pageSize", + "type": "boolean", + "description": "是否包含子级数据", + "name": "includeChildren", "in": "query" }, { "type": "integer", - "description": "排序标记", - "name": "sort", - "in": "query" - }, - { - "type": "boolean", - "description": "启用状态", - "name": "status", + "description": "父级字典详情ID,为空时获取顶级", + "name": "parentID", "in": "query" }, { "type": "integer", - "description": "关联标记", + "description": "字典ID", "name": "sysDictionaryID", - "in": "query" - }, - { - "type": "string", - "description": "更新时间", - "name": "updatedAt", - "in": "query" - }, - { - "type": "string", - "description": "字典值", - "name": "value", - "in": "query" + "in": "query", + "required": true } ], "responses": { "200": { - "description": "分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量", + "description": "获取字典详情列表", "schema": { "allOf": [ { @@ -4505,7 +4602,10 @@ "type": "object", "properties": { "data": { - "$ref": "#/definitions/response.PageResult" + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } }, "msg": { "type": "string" @@ -4518,8 +4618,8 @@ } } }, - "/sysDictionaryDetail/updateSysDictionaryDetail": { - "put": { + "/sysDictionaryDetail/getDictionaryPath": { + "get": { "security": [ { "ApiKeyAuth": [] @@ -4534,21 +4634,19 @@ "tags": [ "SysDictionaryDetail" ], - "summary": "更新SysDictionaryDetail", + "summary": "获取字典详情的完整路径", "parameters": [ { - "description": "更新SysDictionaryDetail", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysDictionaryDetail" - } + "type": "integer", + "description": "字典详情ID", + "name": "id", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "更新SysDictionaryDetail", + "description": "获取字典详情路径", "schema": { "allOf": [ { @@ -4557,6 +4655,12 @@ { "type": "object", "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + }, "msg": { "type": "string" } @@ -4568,7 +4672,7 @@ } } }, - "/sysExportTemplate/ExportTemplate": { + "/sysDictionaryDetail/getDictionaryTreeList": { "get": { "security": [ { @@ -4582,38 +4686,316 @@ "application/json" ], "tags": [ - "SysExportTemplate" - ], - "summary": "导出表格模板", - "responses": {} - } - }, - "/sysExportTemplate/createSysExportTemplate": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysExportTemplate" + "SysDictionaryDetail" ], - "summary": "创建导出模板", + "summary": "获取字典详情树形结构", "parameters": [ { - "description": "创建导出模板", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysExportTemplate" - } + "type": "integer", + "description": "字典ID", + "name": "sysDictionaryID", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "获取字典详情树形结构", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/sysDictionaryDetail/getDictionaryTreeListByType": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysDictionaryDetail" + ], + "summary": "根据字典类型获取字典详情树形结构", + "parameters": [ + { + "type": "string", + "description": "字典类型", + "name": "type", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "获取字典详情树形结构", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/sysDictionaryDetail/getSysDictionaryDetailList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysDictionaryDetail" + ], + "summary": "分页获取SysDictionaryDetail列表", + "parameters": [ + { + "type": "integer", + "description": "主键ID", + "name": "ID", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "createdAt", + "in": "query" + }, + { + "type": "boolean", + "description": "禁用状态,根据status字段动态计算", + "name": "disabled", + "in": "query" + }, + { + "type": "string", + "description": "扩展值", + "name": "extend", + "in": "query" + }, + { + "type": "string", + "description": "关键字", + "name": "keyword", + "in": "query" + }, + { + "type": "string", + "description": "展示值", + "name": "label", + "in": "query" + }, + { + "type": "integer", + "description": "层级深度,用于查询指定层级的数据", + "name": "level", + "in": "query" + }, + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "每页大小", + "name": "pageSize", + "in": "query" + }, + { + "type": "integer", + "description": "父级字典详情ID,用于查询指定父级下的子项", + "name": "parentID", + "in": "query" + }, + { + "type": "string", + "description": "层级路径,如 \"1,2,3\"", + "name": "path", + "in": "query" + }, + { + "type": "integer", + "description": "排序标记", + "name": "sort", + "in": "query" + }, + { + "type": "boolean", + "description": "启用状态", + "name": "status", + "in": "query" + }, + { + "type": "integer", + "description": "关联标记", + "name": "sysDictionaryID", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "updatedAt", + "in": "query" + }, + { + "type": "string", + "description": "字典值", + "name": "value", + "in": "query" + } + ], + "responses": { + "200": { + "description": "分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.PageResult" + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/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": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + } + ], + "responses": { + "200": { + "description": "更新SysDictionaryDetail", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/sysExportTemplate/createSysExportTemplate": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "创建导出模板", + "parameters": [ + { + "description": "创建导出模板", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysExportTemplate" + } } ], "responses": { @@ -4626,8 +5008,386 @@ } } }, - "/sysExportTemplate/deleteSysExportTemplate": { - "delete": { + "/sysExportTemplate/deleteSysExportTemplate": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "删除导出模板", + "parameters": [ + { + "description": "删除导出模板", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/system.SysExportTemplate" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysExportTemplate/deleteSysExportTemplateByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "批量删除导出模板", + "parameters": [ + { + "description": "批量删除导出模板", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysExportTemplate/exportExcel": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "导出表格", + "responses": {} + } + }, + "/sysExportTemplate/exportExcelByToken": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "ExportExcelByToken" + ], + "summary": "导出表格", + "responses": {} + } + }, + "/sysExportTemplate/exportTemplate": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "导出表格模板", + "responses": {} + } + }, + "/sysExportTemplate/exportTemplateByToken": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "ExportTemplateByToken" + ], + "summary": "通过token导出表格模板", + "responses": {} + } + }, + "/sysExportTemplate/findSysExportTemplate": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "用id查询导出模板", + "parameters": [ + { + "type": "integer", + "description": "主键ID", + "name": "ID", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "createdAt", + "in": "query" + }, + { + "type": "string", + "description": "数据库名称", + "name": "dbName", + "in": "query" + }, + { + "type": "integer", + "name": "limit", + "in": "query" + }, + { + "type": "string", + "description": "模板名称", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "order", + "in": "query" + }, + { + "type": "string", + "description": "表名称", + "name": "tableName", + "in": "query" + }, + { + "type": "string", + "description": "模板标识", + "name": "templateID", + "in": "query" + }, + { + "type": "string", + "description": "模板信息", + "name": "templateInfo", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "updatedAt", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysExportTemplate/getSysExportTemplateList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysExportTemplate" + ], + "summary": "分页获取导出模板列表", + "parameters": [ + { + "type": "integer", + "description": "主键ID", + "name": "ID", + "in": "query" + }, + { + "type": "string", + "description": "创建时间", + "name": "createdAt", + "in": "query" + }, + { + "type": "string", + "description": "数据库名称", + "name": "dbName", + "in": "query" + }, + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "string", + "description": "关键字", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "name": "limit", + "in": "query" + }, + { + "type": "string", + "description": "模板名称", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "order", + "in": "query" + }, + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "每页大小", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + }, + { + "type": "string", + "description": "表名称", + "name": "tableName", + "in": "query" + }, + { + "type": "string", + "description": "模板标识", + "name": "templateID", + "in": "query" + }, + { + "type": "string", + "description": "模板信息", + "name": "templateInfo", + "in": "query" + }, + { + "type": "string", + "description": "更新时间", + "name": "updatedAt", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/sysExportTemplate/importExcel": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysImportTemplate" + ], + "summary": "导入表格", + "responses": {} + } + }, + "/sysExportTemplate/updateSysExportTemplate": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -4642,10 +5402,10 @@ "tags": [ "SysExportTemplate" ], - "summary": "删除导出模板", + "summary": "更新导出模板", "parameters": [ { - "description": "删除导出模板", + "description": "更新导出模板", "name": "data", "in": "body", "required": true, @@ -4656,7 +5416,7 @@ ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", + "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } @@ -4664,7 +5424,7 @@ } } }, - "/sysExportTemplate/deleteSysExportTemplateByIds": { + "/sysOperationRecord/deleteSysOperationRecord": { "delete": { "security": [ { @@ -4678,32 +5438,44 @@ "application/json" ], "tags": [ - "SysExportTemplate" + "SysOperationRecord" ], - "summary": "批量删除导出模板", + "summary": "删除SysOperationRecord", "parameters": [ { - "description": "批量删除导出模板", + "description": "SysOperationRecord模型", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.IdsReq" + "$ref": "#/definitions/system.SysOperationRecord" } } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", + "description": "删除SysOperationRecord", "schema": { - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] } } } } }, - "/sysExportTemplate/exportExcel": { - "get": { + "/sysOperationRecord/deleteSysOperationRecordByIds": { + "delete": { "security": [ { "ApiKeyAuth": [] @@ -4716,13 +5488,43 @@ "application/json" ], "tags": [ - "SysExportTemplate" + "SysOperationRecord" ], - "summary": "导出表格", - "responses": {} + "summary": "批量删除SysOperationRecord", + "parameters": [ + { + "description": "批量删除SysOperationRecord", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "批量删除SysOperationRecord", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } } }, - "/sysExportTemplate/findSysExportTemplate": { + "/sysOperationRecord/findSysOperationRecord": { "get": { "security": [ { @@ -4736,9 +5538,9 @@ "application/json" ], "tags": [ - "SysExportTemplate" + "SysOperationRecord" ], - "summary": "用id查询导出模板", + "summary": "用id查询SysOperationRecord", "parameters": [ { "type": "integer", @@ -4746,6 +5548,18 @@ "name": "ID", "in": "query" }, + { + "type": "string", + "description": "代理", + "name": "agent", + "in": "query" + }, + { + "type": "string", + "description": "请求Body", + "name": "body", + "in": "query" + }, { "type": "string", "description": "创建时间", @@ -4754,42 +5568,44 @@ }, { "type": "string", - "description": "数据库名称", - "name": "dbName", + "description": "错误信息", + "name": "error_message", "in": "query" }, { - "type": "integer", - "name": "limit", + "type": "string", + "description": "请求ip", + "name": "ip", "in": "query" }, { "type": "string", - "description": "模板名称", - "name": "name", + "description": "延迟", + "name": "latency", "in": "query" }, { "type": "string", - "name": "order", + "description": "请求方法", + "name": "method", "in": "query" }, { "type": "string", - "description": "表名称", - "name": "tableName", + "description": "请求路径", + "name": "path", "in": "query" }, { "type": "string", - "description": "模板标识", - "name": "templateID", + "description": "响应Body", + "name": "resp", "in": "query" }, { - "type": "string", - "description": "模板信息", - "name": "templateInfo", + "type": "integer", + "description": "请求状态", + "name": "status", "in": "query" }, { @@ -4797,19 +5613,41 @@ "description": "更新时间", "name": "updatedAt", "in": "query" + }, + { + "type": "integer", + "description": "用户id", + "name": "user_id", + "in": "query" } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", + "description": "用id查询SysOperationRecord", "schema": { - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "object", + "additionalProperties": true + }, + "msg": { + "type": "string" + } + } + } + ] } } } } }, - "/sysExportTemplate/getSysExportTemplateList": { + "/sysOperationRecord/getSysOperationRecordList": { "get": { "security": [ { @@ -4823,9 +5661,9 @@ "application/json" ], "tags": [ - "SysExportTemplate" + "SysOperationRecord" ], - "summary": "分页获取导出模板列表", + "summary": "分页获取SysOperationRecord列表", "parameters": [ { "type": "integer", @@ -4833,6 +5671,18 @@ "name": "ID", "in": "query" }, + { + "type": "string", + "description": "代理", + "name": "agent", + "in": "query" + }, + { + "type": "string", + "description": "请求Body", + "name": "body", + "in": "query" + }, { "type": "string", "description": "创建时间", @@ -4841,13 +5691,14 @@ }, { "type": "string", - "description": "数据库名称", - "name": "dbName", + "description": "错误信息", + "name": "error_message", "in": "query" }, { "type": "string", - "name": "endCreatedAt", + "description": "请求ip", + "name": "ip", "in": "query" }, { @@ -4856,20 +5707,16 @@ "name": "keyword", "in": "query" }, - { - "type": "integer", - "name": "limit", - "in": "query" - }, { "type": "string", - "description": "模板名称", - "name": "name", + "description": "延迟", + "name": "latency", "in": "query" }, { "type": "string", - "name": "order", + "description": "请求方法", + "name": "method", "in": "query" }, { @@ -4886,25 +5733,20 @@ }, { "type": "string", - "name": "startCreatedAt", - "in": "query" - }, - { - "type": "string", - "description": "表名称", - "name": "tableName", + "description": "请求路径", + "name": "path", "in": "query" }, { "type": "string", - "description": "模板标识", - "name": "templateID", + "description": "响应Body", + "name": "resp", "in": "query" }, { - "type": "string", - "description": "模板信息", - "name": "templateInfo", + "type": "integer", + "description": "请求状态", + "name": "status", "in": "query" }, { @@ -4912,77 +5754,40 @@ "description": "更新时间", "name": "updatedAt", "in": "query" - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/sysExportTemplate/importExcel": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysImportTemplate" - ], - "summary": "导入表格", - "responses": {} - } - }, - "/sysExportTemplate/updateSysExportTemplate": { - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SysExportTemplate" - ], - "summary": "更新导出模板", - "parameters": [ + }, { - "description": "更新导出模板", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/system.SysExportTemplate" - } + "type": "integer", + "description": "用户id", + "name": "user_id", + "in": "query" } ], "responses": { "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", + "description": "分页获取SysOperationRecord列表,返回包括列表,总数,页码,每页数量", "schema": { - "type": "string" + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.PageResult" + }, + "msg": { + "type": "string" + } + } + } + ] } } } } }, - "/sysOperationRecord/createSysOperationRecord": { + "/sysParams/createSysParams": { "post": { "security": [ { @@ -4996,23 +5801,23 @@ "application/json" ], "tags": [ - "SysOperationRecord" + "SysParams" ], - "summary": "创建SysOperationRecord", + "summary": "创建参数", "parameters": [ { - "description": "创建SysOperationRecord", + "description": "创建参数", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysOperationRecord" + "$ref": "#/definitions/system.SysParams" } } ], "responses": { "200": { - "description": "创建SysOperationRecord", + "description": "创建成功", "schema": { "allOf": [ { @@ -5032,7 +5837,7 @@ } } }, - "/sysOperationRecord/deleteSysOperationRecord": { + "/sysParams/deleteSysParams": { "delete": { "security": [ { @@ -5046,23 +5851,23 @@ "application/json" ], "tags": [ - "SysOperationRecord" + "SysParams" ], - "summary": "删除SysOperationRecord", + "summary": "删除参数", "parameters": [ { - "description": "SysOperationRecord模型", + "description": "删除参数", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysOperationRecord" + "$ref": "#/definitions/system.SysParams" } } ], "responses": { "200": { - "description": "删除SysOperationRecord", + "description": "删除成功", "schema": { "allOf": [ { @@ -5082,7 +5887,7 @@ } } }, - "/sysOperationRecord/deleteSysOperationRecordByIds": { + "/sysParams/deleteSysParamsByIds": { "delete": { "security": [ { @@ -5096,23 +5901,12 @@ "application/json" ], "tags": [ - "SysOperationRecord" - ], - "summary": "批量删除SysOperationRecord", - "parameters": [ - { - "description": "批量删除SysOperationRecord", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.IdsReq" - } - } + "SysParams" ], + "summary": "批量删除参数", "responses": { "200": { - "description": "批量删除SysOperationRecord", + "description": "批量删除成功", "schema": { "allOf": [ { @@ -5132,7 +5926,7 @@ } } }, - "/sysOperationRecord/findSysOperationRecord": { + "/sysParams/findSysParams": { "get": { "security": [ { @@ -5146,9 +5940,9 @@ "application/json" ], "tags": [ - "SysOperationRecord" + "SysParams" ], - "summary": "用id查询SysOperationRecord", + "summary": "用id查询参数", "parameters": [ { "type": "integer", @@ -5156,18 +5950,6 @@ "name": "ID", "in": "query" }, - { - "type": "string", - "description": "代理", - "name": "agent", - "in": "query" - }, - { - "type": "string", - "description": "请求Body", - "name": "body", - "in": "query" - }, { "type": "string", "description": "创建时间", @@ -5176,45 +5958,23 @@ }, { "type": "string", - "description": "错误信息", - "name": "error_message", - "in": "query" - }, - { - "type": "string", - "description": "请求ip", - "name": "ip", - "in": "query" - }, - { - "type": "string", - "description": "延迟", - "name": "latency", - "in": "query" - }, - { - "type": "string", - "description": "请求方法", - "name": "method", - "in": "query" - }, - { - "type": "string", - "description": "请求路径", - "name": "path", + "description": "参数说明", + "name": "desc", "in": "query" }, { "type": "string", - "description": "响应Body", - "name": "resp", - "in": "query" + "description": "参数键", + "name": "key", + "in": "query", + "required": true }, - { - "type": "integer", - "description": "请求状态", - "name": "status", - "in": "query" + { + "type": "string", + "description": "参数名称", + "name": "name", + "in": "query", + "required": true }, { "type": "string", @@ -5223,15 +5983,16 @@ "in": "query" }, { - "type": "integer", - "description": "用户id", - "name": "user_id", - "in": "query" + "type": "string", + "description": "参数值", + "name": "value", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "用id查询SysOperationRecord", + "description": "查询成功", "schema": { "allOf": [ { @@ -5241,8 +6002,7 @@ "type": "object", "properties": { "data": { - "type": "object", - "additionalProperties": true + "$ref": "#/definitions/system.SysParams" }, "msg": { "type": "string" @@ -5255,7 +6015,7 @@ } } }, - "/sysOperationRecord/getSysOperationRecordList": { + "/sysParams/getSysParam": { "get": { "security": [ { @@ -5269,44 +6029,69 @@ "application/json" ], "tags": [ - "SysOperationRecord" + "SysParams" ], - "summary": "分页获取SysOperationRecord列表", + "summary": "根据key获取参数value", "parameters": [ - { - "type": "integer", - "description": "主键ID", - "name": "ID", - "in": "query" - }, { "type": "string", - "description": "代理", - "name": "agent", - "in": "query" - }, - { - "type": "string", - "description": "请求Body", - "name": "body", - "in": "query" - }, + "description": "key", + "name": "key", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "获取成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/system.SysParams" + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/sysParams/getSysParamsList": { + "get": { + "security": [ { - "type": "string", - "description": "创建时间", - "name": "createdAt", - "in": "query" - }, + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysParams" + ], + "summary": "分页获取参数列表", + "parameters": [ { "type": "string", - "description": "错误信息", - "name": "error_message", + "name": "endCreatedAt", "in": "query" }, { "type": "string", - "description": "请求ip", - "name": "ip", + "name": "key", "in": "query" }, { @@ -5317,14 +6102,7 @@ }, { "type": "string", - "description": "延迟", - "name": "latency", - "in": "query" - }, - { - "type": "string", - "description": "请求方法", - "name": "method", + "name": "name", "in": "query" }, { @@ -5341,38 +6119,13 @@ }, { "type": "string", - "description": "请求路径", - "name": "path", - "in": "query" - }, - { - "type": "string", - "description": "响应Body", - "name": "resp", - "in": "query" - }, - { - "type": "integer", - "description": "请求状态", - "name": "status", - "in": "query" - }, - { - "type": "string", - "description": "更新时间", - "name": "updatedAt", - "in": "query" - }, - { - "type": "integer", - "description": "用户id", - "name": "user_id", + "name": "startCreatedAt", "in": "query" } ], "responses": { "200": { - "description": "分页获取SysOperationRecord列表,返回包括列表,总数,页码,每页数量", + "description": "获取成功", "schema": { "allOf": [ { @@ -5395,8 +6148,8 @@ } } }, - "/sysParams/createSysParams": { - "post": { + "/sysParams/updateSysParams": { + "put": { "security": [ { "ApiKeyAuth": [] @@ -5411,10 +6164,10 @@ "tags": [ "SysParams" ], - "summary": "创建参数", + "summary": "更新参数", "parameters": [ { - "description": "创建参数", + "description": "更新参数", "name": "data", "in": "body", "required": true, @@ -5425,7 +6178,7 @@ ], "responses": { "200": { - "description": "创建成功", + "description": "更新成功", "schema": { "allOf": [ { @@ -5445,7 +6198,7 @@ } } }, - "/sysParams/deleteSysParams": { + "/sysVersion/deleteSysVersion": { "delete": { "security": [ { @@ -5459,17 +6212,17 @@ "application/json" ], "tags": [ - "SysParams" + "SysVersion" ], - "summary": "删除参数", + "summary": "删除版本管理", "parameters": [ { - "description": "删除参数", + "description": "删除版本管理", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysParams" + "$ref": "#/definitions/system.SysVersion" } } ], @@ -5495,7 +6248,7 @@ } } }, - "/sysParams/deleteSysParamsByIds": { + "/sysVersion/deleteSysVersionByIds": { "delete": { "security": [ { @@ -5509,9 +6262,9 @@ "application/json" ], "tags": [ - "SysParams" + "SysVersion" ], - "summary": "批量删除参数", + "summary": "批量删除版本管理", "responses": { "200": { "description": "批量删除成功", @@ -5534,7 +6287,7 @@ } } }, - "/sysParams/findSysParams": { + "/sysVersion/downloadVersionJson": { "get": { "security": [ { @@ -5548,59 +6301,21 @@ "application/json" ], "tags": [ - "SysParams" + "SysVersion" ], - "summary": "用id查询参数", + "summary": "下载版本JSON数据", "parameters": [ - { - "type": "integer", - "description": "主键ID", - "name": "ID", - "in": "query" - }, - { - "type": "string", - "description": "创建时间", - "name": "createdAt", - "in": "query" - }, - { - "type": "string", - "description": "参数说明", - "name": "desc", - "in": "query" - }, - { - "type": "string", - "description": "参数键", - "name": "key", - "in": "query", - "required": true - }, - { - "type": "string", - "description": "参数名称", - "name": "name", - "in": "query", - "required": true - }, { "type": "string", - "description": "更新时间", - "name": "updatedAt", - "in": "query" - }, - { - "type": "string", - "description": "参数值", - "name": "value", + "description": "版本ID", + "name": "ID", "in": "query", "required": true } ], "responses": { "200": { - "description": "查询成功", + "description": "下载成功", "schema": { "allOf": [ { @@ -5610,7 +6325,7 @@ "type": "object", "properties": { "data": { - "$ref": "#/definitions/system.SysParams" + "type": "object" }, "msg": { "type": "string" @@ -5623,7 +6338,57 @@ } } }, - "/sysParams/getSysParam": { + "/sysVersion/exportVersion": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysVersion" + ], + "summary": "创建发版数据", + "parameters": [ + { + "description": "创建发版数据", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.ExportVersionRequest" + } + } + ], + "responses": { + "200": { + "description": "创建成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/sysVersion/findSysVersion": { "get": { "security": [ { @@ -5637,21 +6402,21 @@ "application/json" ], "tags": [ - "SysParams" + "SysVersion" ], - "summary": "根据key获取参数value", + "summary": "用id查询版本管理", "parameters": [ { - "type": "string", - "description": "key", - "name": "key", + "type": "integer", + "description": "用id查询版本管理", + "name": "ID", "in": "query", "required": true } ], "responses": { "200": { - "description": "获取成功", + "description": "查询成功", "schema": { "allOf": [ { @@ -5661,7 +6426,7 @@ "type": "object", "properties": { "data": { - "$ref": "#/definitions/system.SysParams" + "$ref": "#/definitions/system.SysVersion" }, "msg": { "type": "string" @@ -5674,7 +6439,7 @@ } } }, - "/sysParams/getSysParamsList": { + "/sysVersion/getSysVersionList": { "get": { "security": [ { @@ -5688,18 +6453,17 @@ "application/json" ], "tags": [ - "SysParams" + "SysVersion" ], - "summary": "分页获取参数列表", + "summary": "分页获取版本管理列表", "parameters": [ { - "type": "string", - "name": "endCreatedAt", - "in": "query" - }, - { - "type": "string", - "name": "key", + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "name": "createdAtRange", "in": "query" }, { @@ -5708,11 +6472,6 @@ "name": "keyword", "in": "query" }, - { - "type": "string", - "name": "name", - "in": "query" - }, { "type": "integer", "description": "页码", @@ -5727,7 +6486,12 @@ }, { "type": "string", - "name": "startCreatedAt", + "name": "versionCode", + "in": "query" + }, + { + "type": "string", + "name": "versionName", "in": "query" } ], @@ -5756,8 +6520,45 @@ } } }, - "/sysParams/updateSysParams": { - "put": { + "/sysVersion/getSysVersionPublic": { + "get": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SysVersion" + ], + "summary": "不需要鉴权的版本管理接口", + "responses": { + "200": { + "description": "获取成功", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "object" + }, + "msg": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "/sysVersion/importVersion": { + "post": { "security": [ { "ApiKeyAuth": [] @@ -5770,23 +6571,23 @@ "application/json" ], "tags": [ - "SysParams" + "SysVersion" ], - "summary": "更新参数", + "summary": "导入版本数据", "parameters": [ { - "description": "更新参数", + "description": "版本JSON数据", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/system.SysParams" + "$ref": "#/definitions/request.ImportVersionRequest" } } ], "responses": { "200": { - "description": "更新成功", + "description": "导入成功", "schema": { "allOf": [ { @@ -5898,10 +6699,10 @@ "tags": [ "System" ], - "summary": "重启系统", + "summary": "重载系统", "responses": { "200": { - "description": "重启系统", + "description": "重载系统", "schema": { "allOf": [ { @@ -6647,7 +7448,7 @@ "type": "integer" }, "open-captcha": { - "description": "防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码此数,如3代表错误三次后出现验证码", + "description": "防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码次数,如3代表错误三次后出现验证码", "type": "integer" }, "open-captcha-timeout": { @@ -6749,6 +7550,39 @@ } } }, + "config.MCP": { + "type": "object", + "properties": { + "addr": { + "description": "独立MCP服务端口", + "type": "integer" + }, + "message_path": { + "description": "消息路径", + "type": "string" + }, + "name": { + "description": "MCP名称", + "type": "string" + }, + "separate": { + "description": "是否独立运行MCP服务", + "type": "boolean" + }, + "sse_path": { + "description": "SSE路径", + "type": "string" + }, + "url_prefix": { + "description": "URL前缀", + "type": "string" + }, + "version": { + "description": "MCP版本", + "type": "string" + } + } + }, "config.Minio": { "type": "object", "properties": { @@ -7204,6 +8038,14 @@ } ] }, + "mcp": { + "description": "MCP配置", + "allOf": [ + { + "$ref": "#/definitions/config.MCP" + } + ] + }, "minio": { "$ref": "#/definitions/config.Minio" }, @@ -7389,6 +8231,10 @@ "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql", "type": "string" }, + "disable-auto-migrate": { + "description": "自动迁移数据库表结构,生产环境建议设为false,手动迁移", + "type": "boolean" + }, "iplimit-count": { "type": "integer" }, @@ -7666,6 +8512,10 @@ "description": "服务器地址 例如 smtp.qq.com 请前往QQ或者你要发邮件的邮箱查看其smtp协议", "type": "string" }, + "is-loginauth": { + "description": "是否LoginAuth 是否使用LoginAuth认证方式(适用于IBM、微软邮箱服务器等)", + "type": "boolean" + }, "is-ssl": { "description": "是否SSL 是否开启SSL", "type": "boolean" @@ -7952,6 +8802,65 @@ } } }, + "request.AutoMcpTool": { + "type": "object", + "required": [ + "description", + "name" + ], + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "params": { + "type": "array", + "items": { + "type": "object", + "required": [ + "description", + "name", + "type" + ], + "properties": { + "default": { + "type": "string" + }, + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "required": { + "type": "boolean" + }, + "type": { + "description": "string, number, boolean, object, array", + "type": "string" + } + } + } + }, + "response": { + "type": "array", + "items": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "text, image", + "type": "string" + } + } + } + } + } + }, "request.CasbinInReceive": { "type": "object", "properties": { @@ -8040,6 +8949,48 @@ } } }, + "request.ExportVersionRequest": { + "type": "object", + "required": [ + "versionCode", + "versionName" + ], + "properties": { + "apiIds": { + "description": "选中的API ID列表", + "type": "array", + "items": { + "type": "integer" + } + }, + "description": { + "description": "版本描述", + "type": "string" + }, + "dictIds": { + "description": "选中的字典ID列表", + "type": "array", + "items": { + "type": "integer" + } + }, + "menuIds": { + "description": "选中的菜单ID列表", + "type": "array", + "items": { + "type": "integer" + } + }, + "versionCode": { + "description": "版本号", + "type": "string" + }, + "versionName": { + "description": "版本名称", + "type": "string" + } + } + }, "request.GetAuthorityId": { "type": "object", "properties": { @@ -8098,6 +9049,43 @@ } } }, + "request.ImportVersionRequest": { + "type": "object", + "required": [ + "version" + ], + "properties": { + "apis": { + "description": "API数据,直接复用SysApi", + "type": "array", + "items": { + "$ref": "#/definitions/system.SysApi" + } + }, + "dictionaries": { + "description": "字典数据,直接复用SysDictionary", + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionary" + } + }, + "menus": { + "description": "菜单数据,直接复用SysBaseMenu", + "type": "array", + "items": { + "$ref": "#/definitions/system.SysBaseMenu" + } + }, + "version": { + "description": "版本信息", + "allOf": [ + { + "$ref": "#/definitions/request.VersionInfo" + } + ] + } + } + }, "request.InitDB": { "type": "object", "required": [ @@ -8357,6 +9345,31 @@ } } }, + "request.VersionInfo": { + "type": "object", + "required": [ + "code", + "name" + ], + "properties": { + "code": { + "description": "版本号", + "type": "string" + }, + "description": { + "description": "版本描述", + "type": "string" + }, + "exportTime": { + "description": "导出时间", + "type": "string" + }, + "name": { + "description": "版本名称", + "type": "string" + } + } + }, "response.Email": { "type": "object", "properties": { @@ -8435,6 +9448,26 @@ } } }, + "response.PageResultT-response_ExaCustomerResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/response.ExaCustomerResponse" + } + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "total": { + "type": "integer" + } + } + }, "response.PolicyPathResponse": { "type": "object", "properties": { @@ -8654,6 +9687,10 @@ "title": { "description": "菜单名", "type": "string" + }, + "transitionType": { + "description": "路由切换动画", + "type": "string" } } }, @@ -8878,6 +9915,13 @@ "description": "主键ID", "type": "integer" }, + "children": { + "description": "子字典", + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionary" + } + }, "createdAt": { "description": "创建时间", "type": "string" @@ -8890,6 +9934,10 @@ "description": "字典名(中)", "type": "string" }, + "parentID": { + "description": "父级字典ID", + "type": "integer" + }, "status": { "description": "状态", "type": "boolean" @@ -8917,10 +9965,21 @@ "description": "主键ID", "type": "integer" }, + "children": { + "description": "子字典详情", + "type": "array", + "items": { + "$ref": "#/definitions/system.SysDictionaryDetail" + } + }, "createdAt": { "description": "创建时间", "type": "string" }, + "disabled": { + "description": "禁用状态,根据status字段动态计算", + "type": "boolean" + }, "extend": { "description": "扩展值", "type": "string" @@ -8929,6 +9988,18 @@ "description": "展示值", "type": "string" }, + "level": { + "description": "层级深度,从0开始", + "type": "integer" + }, + "parentID": { + "description": "父级字典详情ID", + "type": "integer" + }, + "path": { + "description": "层级路径,如 \"1,2,3\"", + "type": "string" + }, "sort": { "description": "排序标记", "type": "integer" @@ -9258,6 +10329,43 @@ } } }, + "system.SysVersion": { + "type": "object", + "required": [ + "versionCode", + "versionName" + ], + "properties": { + "ID": { + "description": "主键ID", + "type": "integer" + }, + "createdAt": { + "description": "创建时间", + "type": "string" + }, + "description": { + "description": "版本描述", + "type": "string" + }, + "updatedAt": { + "description": "更新时间", + "type": "string" + }, + "versionCode": { + "description": "版本号", + "type": "string" + }, + "versionData": { + "description": "版本数据", + "type": "string" + }, + "versionName": { + "description": "版本名称", + "type": "string" + } + } + }, "system.System": { "type": "object", "properties": { diff --git a/server/docs/swagger.yaml b/server/docs/swagger.yaml index 1a1f8cc7cd..896e6531d1 100644 --- a/server/docs/swagger.yaml +++ b/server/docs/swagger.yaml @@ -85,7 +85,7 @@ definitions: description: 验证码长度 type: integer open-captcha: - description: 防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码此数,如3代表错误三次后出现验证码 + description: 防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码次数,如3代表错误三次后出现验证码 type: integer open-captcha-timeout: description: 防爆破验证码超时时间,单位:s(秒) @@ -153,6 +153,30 @@ definitions: description: 本地文件存储路径 type: string type: object + config.MCP: + properties: + addr: + description: 独立MCP服务端口 + type: integer + message_path: + description: 消息路径 + type: string + name: + description: MCP名称 + type: string + separate: + description: 是否独立运行MCP服务 + type: boolean + sse_path: + description: SSE路径 + type: string + url_prefix: + description: URL前缀 + type: string + version: + description: MCP版本 + type: string + type: object config.Minio: properties: access-key-id: @@ -477,6 +501,10 @@ definitions: allOf: - $ref: '#/definitions/config.Local' description: oss + mcp: + allOf: + - $ref: '#/definitions/config.MCP' + description: MCP配置 minio: $ref: '#/definitions/config.Minio' mongo: @@ -608,6 +636,9 @@ definitions: db-type: description: 数据库类型:mysql(默认)|sqlite|sqlserver|postgresql type: string + disable-auto-migrate: + description: 自动迁移数据库表结构,生产环境建议设为false,手动迁移 + type: boolean iplimit-count: type: integer iplimit-time: @@ -802,6 +833,9 @@ definitions: host: description: 服务器地址 例如 smtp.qq.com 请前往QQ或者你要发邮件的邮箱查看其smtp协议 type: string + is-loginauth: + description: 是否LoginAuth 是否使用LoginAuth认证方式(适用于IBM、微软邮箱服务器等) + type: boolean is-ssl: description: 是否SSL 是否开启SSL type: boolean @@ -1014,6 +1048,46 @@ definitions: description: 是否前端表格列 type: boolean type: object + request.AutoMcpTool: + properties: + description: + type: string + name: + type: string + params: + items: + properties: + default: + type: string + description: + type: string + name: + type: string + required: + type: boolean + type: + description: string, number, boolean, object, array + type: string + required: + - description + - name + - type + type: object + type: array + response: + items: + properties: + type: + description: text, image + type: string + required: + - type + type: object + type: array + required: + - description + - name + type: object request.CasbinInReceive: properties: authorityId: @@ -1074,6 +1148,36 @@ definitions: description: 每页大小 type: integer type: object + request.ExportVersionRequest: + properties: + apiIds: + description: 选中的API ID列表 + items: + type: integer + type: array + description: + description: 版本描述 + type: string + dictIds: + description: 选中的字典ID列表 + items: + type: integer + type: array + menuIds: + description: 选中的菜单ID列表 + items: + type: integer + type: array + versionCode: + description: 版本号 + type: string + versionName: + description: 版本名称 + type: string + required: + - versionCode + - versionName + type: object request.GetAuthorityId: properties: authorityId: @@ -1113,6 +1217,30 @@ definitions: type: integer type: array type: object + request.ImportVersionRequest: + properties: + apis: + description: API数据,直接复用SysApi + items: + $ref: '#/definitions/system.SysApi' + type: array + dictionaries: + description: 字典数据,直接复用SysDictionary + items: + $ref: '#/definitions/system.SysDictionary' + type: array + menus: + description: 菜单数据,直接复用SysBaseMenu + items: + $ref: '#/definitions/system.SysBaseMenu' + type: array + version: + allOf: + - $ref: '#/definitions/request.VersionInfo' + description: 版本信息 + required: + - version + type: object request.InitDB: properties: adminPassword: @@ -1298,6 +1426,24 @@ definitions: description: 主键ID type: integer type: object + request.VersionInfo: + properties: + code: + description: 版本号 + type: string + description: + description: 版本描述 + type: string + exportTime: + description: 导出时间 + type: string + name: + description: 版本名称 + type: string + required: + - code + - name + type: object response.Email: properties: body: @@ -1349,6 +1495,19 @@ definitions: total: type: integer type: object + response.PageResultT-response_ExaCustomerResponse: + properties: + list: + items: + $ref: '#/definitions/response.ExaCustomerResponse' + type: array + page: + type: integer + pageSize: + type: integer + total: + type: integer + type: object response.PolicyPathResponse: properties: paths: @@ -1495,6 +1654,9 @@ definitions: title: description: 菜单名 type: string + transitionType: + description: 路由切换动画 + type: string type: object system.SysApi: properties: @@ -1651,6 +1813,11 @@ definitions: ID: description: 主键ID type: integer + children: + description: 子字典 + items: + $ref: '#/definitions/system.SysDictionary' + type: array createdAt: description: 创建时间 type: string @@ -1660,6 +1827,9 @@ definitions: name: description: 字典名(中) type: string + parentID: + description: 父级字典ID + type: integer status: description: 状态 type: boolean @@ -1679,15 +1849,32 @@ definitions: ID: description: 主键ID type: integer + children: + description: 子字典详情 + items: + $ref: '#/definitions/system.SysDictionaryDetail' + type: array createdAt: description: 创建时间 type: string + disabled: + description: 禁用状态,根据status字段动态计算 + type: boolean extend: description: 扩展值 type: string label: description: 展示值 type: string + level: + description: 层级深度,从0开始 + type: integer + parentID: + description: 父级字典详情ID + type: integer + path: + description: 层级路径,如 "1,2,3" + type: string sort: description: 排序标记 type: integer @@ -1920,6 +2107,33 @@ definitions: description: 用户UUID type: string type: object + system.SysVersion: + properties: + ID: + description: 主键ID + type: integer + createdAt: + description: 创建时间 + type: string + description: + description: 版本描述 + type: string + updatedAt: + description: 更新时间 + type: string + versionCode: + description: 版本号 + type: string + versionData: + description: 版本数据 + type: string + versionName: + description: 版本名称 + type: string + required: + - versionCode + - versionName + type: object system.System: properties: config: @@ -1929,7 +2143,7 @@ info: contact: {} description: 使用gin+vue进行极速开发的全栈开发基础平台 title: Gin-Vue-Admin Swagger API接口文档 - version: v2.7.9-beta + version: v2.8.6 paths: /api/createApi: post: @@ -2935,8 +3149,7 @@ paths: - $ref: '#/definitions/response.Response' - properties: data: - items: - type: object + items: {} type: array msg: type: string @@ -2946,6 +3159,75 @@ paths: summary: 安装插件 tags: - AutoCodePlugin + /autoCode/mcp: + post: + consumes: + - application/json + parameters: + - description: 创建自动代码 + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.AutoMcpTool' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"创建成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 自动McpTool + tags: + - mcp + /autoCode/mcpList: + post: + consumes: + - application/json + parameters: + - description: 创建自动代码 + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.AutoMcpTool' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"创建成功"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 自动McpTool + tags: + - mcp + /autoCode/mcpTest: + post: + consumes: + - application/json + parameters: + - description: 调用MCP Tool的参数 + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"测试成功"}' + schema: + $ref: '#/definitions/response.Response' + security: + - ApiKeyAuth: [] + summary: 测试McpTool + tags: + - mcp /autoCode/preview: post: consumes: @@ -3302,7 +3584,7 @@ paths: - $ref: '#/definitions/response.Response' - properties: data: - $ref: '#/definitions/response.PageResult' + $ref: '#/definitions/response.PageResultT-response_ExaCustomerResponse' msg: type: string type: object @@ -4225,6 +4507,10 @@ paths: in: query name: name type: string + - description: 父级字典ID + in: query + name: parentID + type: integer - description: 状态 in: query name: status @@ -4261,6 +4547,11 @@ paths: get: consumes: - application/json + parameters: + - description: 字典名(中) + in: query + name: name + type: string produces: - application/json responses: @@ -4377,6 +4668,10 @@ paths: in: query name: createdAt type: string + - description: 禁用状态,根据status字段动态计算 + in: query + name: disabled + type: boolean - description: 扩展值 in: query name: extend @@ -4385,6 +4680,18 @@ paths: in: query name: label type: string + - description: 层级深度,从0开始 + in: query + name: level + type: integer + - description: 父级字典详情ID + in: query + name: parentID + type: integer + - description: 层级路径,如 "1,2,3" + in: query + name: path + type: string - description: 排序标记 in: query name: sort @@ -4425,118 +4732,254 @@ paths: summary: 用id查询SysDictionaryDetail tags: - SysDictionaryDetail - /sysDictionaryDetail/getSysDictionaryDetailList: + /sysDictionaryDetail/getDictionaryDetailsByParent: get: consumes: - application/json parameters: - - description: 主键ID - in: query - name: ID - type: integer - - description: 创建时间 + - description: 是否包含子级数据 in: query - name: createdAt - type: string - - description: 扩展值 - in: query - name: extend - type: string - - description: 关键字 - in: query - name: keyword - type: string - - description: 展示值 - in: query - name: label - type: string - - description: 页码 - in: query - name: page - type: integer - - description: 每页大小 - in: query - name: pageSize - type: integer - - description: 排序标记 + name: includeChildren + type: boolean + - description: 父级字典详情ID,为空时获取顶级 in: query - name: sort + name: parentID type: integer - - description: 启用状态 - in: query - name: status - type: boolean - - description: 关联标记 + - description: 字典ID in: query name: sysDictionaryID + required: true type: integer - - description: 更新时间 - in: query - name: updatedAt - type: string - - description: 字典值 - in: query - name: value - type: string produces: - application/json responses: "200": - description: 分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量 + description: 获取字典详情列表 schema: allOf: - $ref: '#/definitions/response.Response' - properties: data: - $ref: '#/definitions/response.PageResult' + items: + $ref: '#/definitions/system.SysDictionaryDetail' + type: array msg: type: string type: object security: - ApiKeyAuth: [] - summary: 分页获取SysDictionaryDetail列表 + summary: 根据父级ID获取字典详情 tags: - SysDictionaryDetail - /sysDictionaryDetail/updateSysDictionaryDetail: - put: + /sysDictionaryDetail/getDictionaryPath: + get: consumes: - application/json parameters: - - description: 更新SysDictionaryDetail - in: body - name: data + - description: 字典详情ID + in: query + name: id required: true - schema: - $ref: '#/definitions/system.SysDictionaryDetail' + type: integer produces: - application/json responses: "200": - description: 更新SysDictionaryDetail + description: 获取字典详情路径 schema: allOf: - $ref: '#/definitions/response.Response' - properties: + data: + items: + $ref: '#/definitions/system.SysDictionaryDetail' + type: array msg: type: string type: object security: - ApiKeyAuth: [] - summary: 更新SysDictionaryDetail + summary: 获取字典详情的完整路径 tags: - SysDictionaryDetail - /sysExportTemplate/ExportTemplate: + /sysDictionaryDetail/getDictionaryTreeList: get: consumes: - application/json + parameters: + - description: 字典ID + in: query + name: sysDictionaryID + required: true + type: integer produces: - application/json - responses: {} + responses: + "200": + description: 获取字典详情树形结构 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + items: + $ref: '#/definitions/system.SysDictionaryDetail' + type: array + msg: + type: string + type: object security: - ApiKeyAuth: [] - summary: 导出表格模板 + summary: 获取字典详情树形结构 tags: - - SysExportTemplate + - SysDictionaryDetail + /sysDictionaryDetail/getDictionaryTreeListByType: + get: + consumes: + - application/json + parameters: + - description: 字典类型 + in: query + name: type + required: true + type: string + produces: + - application/json + responses: + "200": + description: 获取字典详情树形结构 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + items: + $ref: '#/definitions/system.SysDictionaryDetail' + type: array + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 根据字典类型获取字典详情树形结构 + tags: + - SysDictionaryDetail + /sysDictionaryDetail/getSysDictionaryDetailList: + get: + consumes: + - application/json + parameters: + - description: 主键ID + in: query + name: ID + type: integer + - description: 创建时间 + in: query + name: createdAt + type: string + - description: 禁用状态,根据status字段动态计算 + in: query + name: disabled + type: boolean + - description: 扩展值 + in: query + name: extend + type: string + - description: 关键字 + in: query + name: keyword + type: string + - description: 展示值 + in: query + name: label + type: string + - description: 层级深度,用于查询指定层级的数据 + in: query + name: level + type: integer + - description: 页码 + in: query + name: page + type: integer + - description: 每页大小 + in: query + name: pageSize + type: integer + - description: 父级字典详情ID,用于查询指定父级下的子项 + in: query + name: parentID + type: integer + - description: 层级路径,如 "1,2,3" + in: query + name: path + type: string + - description: 排序标记 + in: query + name: sort + type: integer + - description: 启用状态 + in: query + name: status + type: boolean + - description: 关联标记 + in: query + name: sysDictionaryID + type: integer + - description: 更新时间 + in: query + name: updatedAt + type: string + - description: 字典值 + in: query + name: value + type: string + produces: + - application/json + responses: + "200": + description: 分页获取SysDictionaryDetail列表,返回包括列表,总数,页码,每页数量 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/response.PageResult' + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 分页获取SysDictionaryDetail列表 + tags: + - SysDictionaryDetail + /sysDictionaryDetail/updateSysDictionaryDetail: + put: + consumes: + - application/json + parameters: + - description: 更新SysDictionaryDetail + in: body + name: data + required: true + schema: + $ref: '#/definitions/system.SysDictionaryDetail' + produces: + - application/json + responses: + "200": + description: 更新SysDictionaryDetail + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 更新SysDictionaryDetail + tags: + - SysDictionaryDetail /sysExportTemplate/createSysExportTemplate: post: consumes: @@ -4618,6 +5061,42 @@ paths: summary: 导出表格 tags: - SysExportTemplate + /sysExportTemplate/exportExcelByToken: + get: + consumes: + - application/json + produces: + - application/json + responses: {} + security: + - ApiKeyAuth: [] + summary: 导出表格 + tags: + - ExportExcelByToken + /sysExportTemplate/exportTemplate: + get: + consumes: + - application/json + produces: + - application/json + responses: {} + security: + - ApiKeyAuth: [] + summary: 导出表格模板 + tags: + - SysExportTemplate + /sysExportTemplate/exportTemplateByToken: + get: + consumes: + - application/json + produces: + - application/json + responses: {} + security: + - ApiKeyAuth: [] + summary: 通过token导出表格模板 + tags: + - ExportTemplateByToken /sysExportTemplate/findSysExportTemplate: get: consumes: @@ -4781,34 +5260,6 @@ paths: summary: 更新导出模板 tags: - SysExportTemplate - /sysOperationRecord/createSysOperationRecord: - post: - consumes: - - application/json - parameters: - - description: 创建SysOperationRecord - in: body - name: data - required: true - schema: - $ref: '#/definitions/system.SysOperationRecord' - produces: - - application/json - responses: - "200": - description: 创建SysOperationRecord - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - msg: - type: string - type: object - security: - - ApiKeyAuth: [] - summary: 创建SysOperationRecord - tags: - - SysOperationRecord /sysOperationRecord/deleteSysOperationRecord: delete: consumes: @@ -5267,6 +5718,238 @@ paths: summary: 更新参数 tags: - SysParams + /sysVersion/deleteSysVersion: + delete: + consumes: + - application/json + parameters: + - description: 删除版本管理 + in: body + name: data + required: true + schema: + $ref: '#/definitions/system.SysVersion' + produces: + - application/json + responses: + "200": + description: 删除成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 删除版本管理 + tags: + - SysVersion + /sysVersion/deleteSysVersionByIds: + delete: + consumes: + - application/json + produces: + - application/json + responses: + "200": + description: 批量删除成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 批量删除版本管理 + tags: + - SysVersion + /sysVersion/downloadVersionJson: + get: + consumes: + - application/json + parameters: + - description: 版本ID + in: query + name: ID + required: true + type: string + produces: + - application/json + responses: + "200": + description: 下载成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + type: object + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 下载版本JSON数据 + tags: + - SysVersion + /sysVersion/exportVersion: + post: + consumes: + - application/json + parameters: + - description: 创建发版数据 + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.ExportVersionRequest' + produces: + - application/json + responses: + "200": + description: 创建成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 创建发版数据 + tags: + - SysVersion + /sysVersion/findSysVersion: + get: + consumes: + - application/json + parameters: + - description: 用id查询版本管理 + in: query + name: ID + required: true + type: integer + produces: + - application/json + responses: + "200": + description: 查询成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/system.SysVersion' + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 用id查询版本管理 + tags: + - SysVersion + /sysVersion/getSysVersionList: + get: + consumes: + - application/json + parameters: + - collectionFormat: csv + in: query + items: + type: string + name: createdAtRange + type: array + - description: 关键字 + in: query + name: keyword + type: string + - description: 页码 + in: query + name: page + type: integer + - description: 每页大小 + in: query + name: pageSize + type: integer + - in: query + name: versionCode + type: string + - in: query + name: versionName + type: string + produces: + - application/json + responses: + "200": + description: 获取成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/response.PageResult' + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 分页获取版本管理列表 + tags: + - SysVersion + /sysVersion/getSysVersionPublic: + get: + consumes: + - application/json + produces: + - application/json + responses: + "200": + description: 获取成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + type: object + msg: + type: string + type: object + summary: 不需要鉴权的版本管理接口 + tags: + - SysVersion + /sysVersion/importVersion: + post: + consumes: + - application/json + parameters: + - description: 版本JSON数据 + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.ImportVersionRequest' + produces: + - application/json + responses: + "200": + description: 导入成功 + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + msg: + type: string + type: object + security: + - ApiKeyAuth: [] + summary: 导入版本数据 + tags: + - SysVersion /system/getServerInfo: post: produces: @@ -5316,7 +5999,7 @@ paths: - application/json responses: "200": - description: 重启系统 + description: 重载系统 schema: allOf: - $ref: '#/definitions/response.Response' @@ -5326,7 +6009,7 @@ paths: type: object security: - ApiKeyAuth: [] - summary: 重启系统 + summary: 重载系统 tags: - System /system/setSystemConfig: diff --git a/server/model/common/response/common.go b/server/model/common/response/common.go index 74610965b7..3edd38193e 100644 --- a/server/model/common/response/common.go +++ b/server/model/common/response/common.go @@ -6,3 +6,11 @@ type PageResult struct { Page int `json:"page"` PageSize int `json:"pageSize"` } + +// PageResultT 通用分页返回-泛型 +type PageResultT[T any] struct { + List []T `json:"list"` + Total int64 `json:"total"` + Page int `json:"page"` + PageSize int `json:"pageSize"` +} diff --git a/server/service/example/exa_customer.go b/server/service/example/exa_customer.go index cf816f5a3b..08f9fe1eeb 100644 --- a/server/service/example/exa_customer.go +++ b/server/service/example/exa_customer.go @@ -62,7 +62,7 @@ func (exa *CustomerService) GetExaCustomer(id uint) (customer example.ExaCustome //@param: sysUserAuthorityID string, info request.PageInfo //@return: list interface{}, total int64, err error -func (exa *CustomerService) GetCustomerInfoList(sysUserAuthorityID uint, info request.PageInfo) (list interface{}, total int64, err error) { +func (exa *CustomerService) GetCustomerInfoList(sysUserAuthorityID uint, info request.PageInfo) (list []example.ExaCustomer, total int64, err error) { limit := info.PageSize offset := info.PageSize * (info.Page - 1) db := global.GVA_DB.Model(&example.ExaCustomer{})