diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/core/CodeGenerator.java b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/core/CodeGenerator.java index a9ebd368..54313f4b 100644 --- a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/core/CodeGenerator.java +++ b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/core/CodeGenerator.java @@ -310,8 +310,6 @@ public class CodeGenerator implements Executable { new String[]{"/templates/orion-server-module-entity-request-update.java.vm", "${type}UpdateRequest.java", "entity.request.${bizPackage}"}, // query request 文件 new String[]{"/templates/orion-server-module-entity-request-query.java.vm", "${type}QueryRequest.java", "entity.request.${bizPackage}"}, - // export 文件 - new String[]{"/templates/orion-server-module-entity-export.java.vm", "${type}Export.java", "entity.export"}, // convert 文件 new String[]{"/templates/orion-server-module-convert.java.vm", "${type}Convert.java", "convert"}, // cache dto 文件 diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/core/CodeGeneratorEngine.java b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/core/CodeGeneratorEngine.java index 8576c186..67f091ed 100644 --- a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/core/CodeGeneratorEngine.java +++ b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/core/CodeGeneratorEngine.java @@ -113,7 +113,6 @@ public class CodeGeneratorEngine extends VelocityTemplateEngine { apiComment.put("deleteById", "删除" + comment); apiComment.put("deleteAll", "根据条件删除" + comment); apiComment.put("batchDelete", "批量删除" + comment); - apiComment.put("export", "导出" + comment); objectMap.put("apiComment", apiComment); } diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/core/CustomFileFilter.java b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/core/CustomFileFilter.java index 98cefd24..d5f095b9 100644 --- a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/core/CustomFileFilter.java +++ b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/core/CustomFileFilter.java @@ -46,6 +46,10 @@ public class CustomFileFilter { .packageName(s.getPackageName()) .build()) .collect(Collectors.toList()); + // 不生成 api http 文件 + if (!table.isEnableApiHttp()) { + files.removeIf(file -> isApiHttpFile(file.getTemplatePath())); + } // 不生成对外 api 文件 if (!table.isEnableProviderApi()) { files.removeIf(file -> isServerProviderFile(file.getTemplatePath())); @@ -139,13 +143,13 @@ public class CustomFileFilter { } /** - * 是否为导出文件 + * 是否为 api http 文件 * * @param templatePath templatePath * @return 是否为导出文件 */ - public static boolean isExportFile(String templatePath) { - return templatePath.contains("orion-server-module-entity-export"); + public static boolean isApiHttpFile(String templatePath) { + return templatePath.contains("orion-server-module-controller.http"); } /** diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/template/ServerTemplate.java b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/template/ServerTemplate.java index 3d664ced..59380c71 100644 --- a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/template/ServerTemplate.java +++ b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/template/ServerTemplate.java @@ -63,6 +63,16 @@ public class ServerTemplate extends Template { return this; } + /** + * 是否生成 api http 文件 + * + * @return this + */ + public ServerTemplate enableApiHttp() { + table.enableApiHttp = true; + return this; + } + /** * 是否生成对外 api * diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/template/Table.java b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/template/Table.java index 7538a5ce..f3b0a9a6 100644 --- a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/template/Table.java +++ b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/java/com/orion/visor/framework/mybatis/core/generator/template/Table.java @@ -33,6 +33,11 @@ public class Table { */ protected String bizPackage; + /** + * 是否生成 api http 文件 + */ + protected boolean enableApiHttp; + /** * 是否生成对外 api */ diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-server-module-entity-export.java.vm b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-server-module-entity-export.java.vm deleted file mode 100644 index 0ddc30ed..00000000 --- a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-server-module-entity-export.java.vm +++ /dev/null @@ -1,65 +0,0 @@ -package ${currentPackage}; - -import com.orion.lang.utils.time.Dates; -import com.orion.office.excel.annotation.ExportField; -import com.orion.office.excel.annotation.ExportSheet; -import com.orion.office.excel.annotation.ExportTitle; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.*; - -import java.io.Serializable; -import java.util.*; -import java.math.*; - -/** - * $!{table.comment} 导出对象 - * - * @author ${author} - * @version ${version} - * @since ${date} - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -@ExportTitle(title = ${type}Export.TITLE) -@ExportSheet(name = "$!{table.comment}", filterHeader = true, freezeHeader = true, indexToSort = true) -@Schema(name = "${type}Export", description = "$!{table.comment}导出对象") -public class ${type}Export implements Serializable { - - private static final long serialVersionUID = 1L; - - public static final String TITLE = "$!{table.comment}导出"; - #foreach($field in ${table.fields}) - - #if("$!field.comment" != "") - @Schema(description = "${field.comment}") - #end - #if("$field.propertyType" == "Date") - @ExportField(index = ${foreach.index}, header = "${field.comment}", width = 16, format = Dates.YMD_HMS) - #else - @ExportField(index = ${foreach.index}, header = "${field.comment}", width = 16) - #end - private ${field.propertyType} ${field.propertyName}; - #end - - @ExportField(index = $table.fields.size(), header = "创建时间", width = 16, format = Dates.YMD_HMS) - @Schema(description = "创建时间") - private Date createTime; - - #set($updateTimeIndex=$table.fields.size() + 1) - @Schema(description = "修改时间") - @ExportField(index = $updateTimeIndex, header = "修改时间", width = 16, format = Dates.YMD_HMS) - private Date updateTime; - - #set($creatorIndex=$table.fields.size() + 2) - @Schema(description = "创建人") - @ExportField(index = $creatorIndex, header = "创建人", width = 16) - private String creator; - - #set($updaterIndex=$table.fields.size() + 3) - @Schema(description = "修改人") - @ExportField(index = $updaterIndex, header = "修改人", width = 16) - private String updater; - -} diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-sql-menu.sql.vm b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-sql-menu.sql.vm index 23fee85e..44cf25a1 100644 --- a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-sql-menu.sql.vm +++ b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-sql-menu.sql.vm @@ -26,7 +26,3 @@ VALUES (@TMP_SUB_ID, '创建$table.comment', '${package.ModuleName}:${typeHyphen}:create', 3, 20, '1', '1', 0), (@TMP_SUB_ID, '修改$table.comment', '${package.ModuleName}:${typeHyphen}:update', 3, 30, '1', '1', 0), (@TMP_SUB_ID, '删除$table.comment', '${package.ModuleName}:${typeHyphen}:delete', 3, 40, '1', '1', 0); - #if(false) - (@TMP_SUB_ID, '导出$table.comment', '${package.ModuleName}:${typeHyphen}:export', 3, 50, '1', '1', 0), - (@TMP_SUB_ID, '导入$table.comment', '${package.ModuleName}:${typeHyphen}:import', 3, 60, '1', '1', 0); - #end diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/AssetAuthorizedDataServiceController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/AssetAuthorizedDataServiceController.http deleted file mode 100644 index 2db74864..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/AssetAuthorizedDataServiceController.http +++ /dev/null @@ -1,12 +0,0 @@ -### 查询当前用户已授权的主机 -GET {{baseUrl}}/asset/authorized-data/current-host -Authorization: {{token}} - -### 查询当前用户已授权的主机密钥 -GET {{baseUrl}}/asset/authorized-data/current-host-key -Authorization: {{token}} - -### 查询当前用户已授权的主机身份 -GET {{baseUrl}}/asset/authorized-data/current-host-identity -Authorization: {{token}} - diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/AssetDataGrantServiceController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/AssetDataGrantServiceController.http deleted file mode 100644 index 9d105a0e..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/AssetDataGrantServiceController.http +++ /dev/null @@ -1,50 +0,0 @@ -### 主机分组授权 -PUT {{baseUrl}}/asset/data-grant/grant-host-group -Content-Type: application/json -Authorization: {{token}} - -{ - "userId": 10, - "idList": [ - 3, - 5 - ] -} - -### 获取已授权的主机分组 -GET {{baseUrl}}/asset/data-grant/get-host-group?userId=10 -Authorization: {{token}} - -### 主机密钥授权 -PUT {{baseUrl}}/asset/data-grant/grant-host-key -Content-Type: application/json -Authorization: {{token}} - -{ - "userId": 10, - "idList": [ - 2, - 3 - ] -} - -### 获取已授权的主机密钥 -GET {{baseUrl}}/asset/data-grant/get-host-key?userId=10 -Authorization: {{token}} - -### 主机身份授权 -PUT {{baseUrl}}/asset/data-grant/grant-host-identity -Content-Type: application/json -Authorization: {{token}} - -{ - "userId": 10, - "idList": [ - 3, - 5 - ] -} - -### 获取已授权的主机身份 -GET {{baseUrl}}/asset/data-grant/get-host-identity?userId=10 -Authorization: {{token}} diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/CommandSnippetController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/CommandSnippetController.http deleted file mode 100644 index 7fedd72c..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/CommandSnippetController.http +++ /dev/null @@ -1,36 +0,0 @@ -### 创建命令片段 -POST {{baseUrl}}/asset/command-snippet/create -Content-Type: application/json -Authorization: {{token}} - -{ - "groupId": "", - "name": "", - "command": "" -} - - -### 更新命令片段 -PUT {{baseUrl}}/asset/command-snippet/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "groupId": "", - "name": "", - "command": "" -} - - -### 查询全部命令片段 -GET {{baseUrl}}/asset/command-snippet/list -Authorization: {{token}} - - -### 删除命令片段 -DELETE {{baseUrl}}/asset/command-snippet/delete?id=1 -Authorization: {{token}} - - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/CommandSnippetGroupController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/CommandSnippetGroupController.http deleted file mode 100644 index 907913ff..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/CommandSnippetGroupController.http +++ /dev/null @@ -1,32 +0,0 @@ -### 创建命令片段分组 -POST {{baseUrl}}/asset/command-snippet-group/create -Content-Type: application/json -Authorization: {{token}} - -{ - "name": "" -} - - -### 更新命令片段分组 -PUT {{baseUrl}}/asset/command-snippet-group/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "name": "" -} - - -### 查询全部命令片段分组 -GET {{baseUrl}}/asset/command-snippet-group/list -Authorization: {{token}} - - -### 删除命令片段分组 -DELETE {{baseUrl}}/asset/command-snippet-group/delete?id=1 -Authorization: {{token}} - - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecCommandController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecCommandController.http deleted file mode 100644 index 2f0bd511..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecCommandController.http +++ /dev/null @@ -1,25 +0,0 @@ -### 批量执行命令 -POST {{baseUrl}}/asset/exec-command/exec -Content-Type: application/json -Authorization: {{token}} - -{ - "description": 1, - "timeout": 10, - "scriptExec": 0, - "command": "echo 这是日志@{{ hostAddress }}\nsleep 1\necho @{{ hostName }}", - "parameterSchema": "[]", - "hostIdList": [1] -} - -### 批量执行命令 -POST {{baseUrl}}/asset/exec-command/re-exec -Content-Type: application/json -Authorization: {{token}} - -{ - "logId": 1 -} - - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecCommandLogController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecCommandLogController.http deleted file mode 100644 index d142f9d1..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecCommandLogController.http +++ /dev/null @@ -1,58 +0,0 @@ -### 查询批量执行日志 -GET {{baseUrl}}/asset/exec-command-log/get?id=1 -Authorization: {{token}} - - -### 分页查询批量执行日志 -POST {{baseUrl}}/asset/exec-command-log/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "id": "", - "userId": "", - "username": "", - "description": "", - "command": "", - "status": "" -} - - -### 删除批量执行日志 -DELETE {{baseUrl}}/asset/exec-command-log/delete?id=1 -Authorization: {{token}} - - -### 批量删除批量执行日志 -DELETE {{baseUrl}}/asset/exec-command-log/batch-delete?idList=1,2,3 -Authorization: {{token}} - - -### 查看执行日志 -POST {{baseUrl}}/asset/exec-command-log/tail -Content-Type: application/json -Authorization: {{token}} - -{ - "execId": 56 -} - - -### 下载批量执行日志文件 -GET {{baseUrl}}/asset/exec-command-log/download?id=83 -Authorization: {{token}} - - -### 中断批量执行命令 -POST {{baseUrl}}/asset/exec-command-log/interrupt -Content-Type: application/json -Authorization: {{token}} - -{ - "logId": 7 -} - - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecJobController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecJobController.http deleted file mode 100644 index 42d16123..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecJobController.http +++ /dev/null @@ -1,74 +0,0 @@ -### 创建计划任务 -POST {{baseUrl}}/asset/exec-job/create -Content-Type: application/json -Authorization: {{token}} - -{ - "name": "测试 1", - "expression": "0 */3 * * * ?", - "timeout": 0, - "scriptExec": 0, - "command": "echo 123", - "parameterSchema": "[]", - "hostIdList": [ - 1 - ] -} - - -### 更新计划任务 -PUT {{baseUrl}}/asset/exec-job/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": 5, - "name": "测试 1", - "expression": "0 */10 * * * ?", - "timeout": 0, - "scriptExec": 0, - "command": "echo 123", - "parameterSchema": "[]", - "hostIdList": [ - 1 - ] -} - - -### 更新计划任务状态 -PUT {{baseUrl}}/asset/exec-job/update-status -Content-Type: application/json -Authorization: {{token}} - -{ - "id": 5, - "status": 0 -} - - -### 查询计划任务 -GET {{baseUrl}}/asset/exec-job/get?id=1 -Authorization: {{token}} - - -### 分页查询计划任务 -POST {{baseUrl}}/asset/exec-job/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "id": "", - "name": "", - "command": "", - "status": "" -} - - -### 删除计划任务 -DELETE {{baseUrl}}/asset/exec-job/delete?id=1 -Authorization: {{token}} - - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecJobLogController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecJobLogController.http deleted file mode 100644 index 8474b5c8..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecJobLogController.http +++ /dev/null @@ -1,57 +0,0 @@ -### 查询计划任务日志 -GET {{baseUrl}}/asset/exec-job-log/get?id=1 -Authorization: {{token}} - - -### 分页查询计划任务日志 -POST {{baseUrl}}/asset/exec-job-log/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "id": "", - "userId": "", - "username": "", - "description": "", - "command": "", - "status": "" -} - - -### 删除计划任务日志 -DELETE {{baseUrl}}/asset/exec-job-log/delete?id=1 -Authorization: {{token}} - - -### 批量删除计划任务日志 -DELETE {{baseUrl}}/asset/exec-job-log/batch-delete?idList=1,2,3 -Authorization: {{token}} - - -### 查看计划任务日志 -POST {{baseUrl}}/asset/exec-job-log/tail -Content-Type: application/json -Authorization: {{token}} - -{ - "execId": 56 -} - - -### 下载计划任务日志文件 -GET {{baseUrl}}/asset/exec-job-log/download?id=83 -Authorization: {{token}} - - -### 中断计划任务命令 -POST {{baseUrl}}/asset/exec-command-log/interrupt -Content-Type: application/json -Authorization: {{token}} - -{ - "logId": 7 -} - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecTemplateController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecTemplateController.http deleted file mode 100644 index 018c5cf9..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/ExecTemplateController.http +++ /dev/null @@ -1,63 +0,0 @@ -### 创建执行模板 -POST {{baseUrl}}/asset/exec-template/create -Content-Type: application/json -Authorization: {{token}} - -{ - "name": "", - "command": "", - "timeout": 0, - "scriptExec": 0, - "parameterSchema": "" -} - - -### 更新执行模板 -PUT {{baseUrl}}/asset/exec-template/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "name": "", - "command": "", - "timeout": 0, - "scriptExec": 0, - "parameterSchema": "" -} - - -### 查询执行模板 -GET {{baseUrl}}/asset/exec-template/get?id=1 -Authorization: {{token}} - - -### 查询全部执行模板 -GET {{baseUrl}}/asset/exec-template/list -Content-Type: application/json -Authorization: {{token}} - - -### 分页查询执行模板 -POST {{baseUrl}}/asset/exec-template/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "id": "", - "name": "", - "command": "", - "timeout": 0, - "scriptExec": 0, - "parameterSchema": "" -} - - -### 删除执行模板 -DELETE {{baseUrl}}/asset/exec-template/delete?id=1 -Authorization: {{token}} - - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostConfigController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostConfigController.http deleted file mode 100644 index d71f36b9..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostConfigController.http +++ /dev/null @@ -1,31 +0,0 @@ -### 查询主机配置 -GET {{baseUrl}}/asset/host-config/get?hostId=1&type=SSH -Authorization: {{token}} - -### 查询全部主机配置 -GET {{baseUrl}}/asset/host-config/list?hostId=1 -Authorization: {{token}} - -### 通过 id 更新主机配置 -PUT {{baseUrl}}/asset/host-config/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "config": "", - "version": "" -} - -### 通过 id 更新主机配置状态 -PUT {{baseUrl}}/asset/host-config/update-status -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "status": "", - "version": "" -} - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostConnectLogController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostConnectLogController.http deleted file mode 100644 index 3fcc336f..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostConnectLogController.http +++ /dev/null @@ -1,31 +0,0 @@ -### 分页查询主机连接日志 -POST {{baseUrl}}/asset/host-connect-log/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "userId": "", - "hostId": "", - "type": "", - "token": "", - "status": "", - "startTimeRange": [ - "", - "" - ] -} - -### 查询用户最近连接的 ssh 主机 -POST {{baseUrl}}/asset/host-connect-log/latest-connect -Content-Type: application/json -Authorization: {{token}} - -{ - "limit": 10, - "type": "SSH" -} - - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostController.http deleted file mode 100644 index 3c1b1adb..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostController.http +++ /dev/null @@ -1,56 +0,0 @@ -### 创建主机 -POST {{baseUrl}}/asset/host/create -Content-Type: application/json -Authorization: {{token}} - -{ - "name": "", - "code": "", - "address": "" -} - - -### 通过 id 更新主机 -PUT {{baseUrl}}/asset/host/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "name": "", - "code": "", - "address": "" -} - - -### 通过 id 查询主机 -GET {{baseUrl}}/asset/host/get?id=1&extra=true&config=true -Authorization: {{token}} - - -### 查询主机 -GET {{baseUrl}}/asset/host/list -Authorization: {{token}} - - -### 分页查询主机 -POST {{baseUrl}}/asset/host/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "id": "", - "name": "", - "code": "", - "address": "" -} - - -### 通过 id 删除主机 -DELETE {{baseUrl}}/asset/host/delete?id=1 -Authorization: {{token}} - - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostExtraController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostExtraController.http deleted file mode 100644 index 0e016d9a..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostExtraController.http +++ /dev/null @@ -1,28 +0,0 @@ -### 获取主机拓展信息 -GET {{baseUrl}}/asset/host-extra/get?hostId=1&item=ssh -Authorization: {{token}} - -### 获取多个主机拓展信息 -POST {{baseUrl}}/asset/host-extra/list -Content-Type: application/json -Authorization: {{token}} - -{ - "hostId": 1, - "items": [ - "ssh" - ] -} - -### 修改主机拓展信息 -PUT {{baseUrl}}/asset/host-extra/update -Content-Type: application/json -Authorization: {{token}} - -{ - "hostId": 1, - "item": "ssh", - "extra": "{\"authType\":\"DEFAULT\"}" -} - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostGroupController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostGroupController.http deleted file mode 100644 index fcff43e9..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostGroupController.http +++ /dev/null @@ -1,44 +0,0 @@ -### 创建主机分组 -POST {{baseUrl}}/asset/host-group/create -Content-Type: application/json -Authorization: {{token}} - -{ - "parentId": -1, - "name": "" -} - - -### 查询主机分组 -GET {{baseUrl}}/asset/host-group/tree -Authorization: {{token}} - - -### 修改名称 -PUT {{baseUrl}}/asset/host-group/rename -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "name": "" -} - - -### 移动位置 -PUT {{baseUrl}}/asset/host-group/move -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "targetId": "", - "position": "" -} - - -### 删除主机分组 -DELETE {{baseUrl}}/asset/host-group/delete?id=1 -Authorization: {{token}} - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostIdentityController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostIdentityController.http deleted file mode 100644 index 4146e068..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostIdentityController.http +++ /dev/null @@ -1,57 +0,0 @@ -### 创建主机身份 -POST {{baseUrl}}/asset/host-identity/create -Content-Type: application/json -Authorization: {{token}} - -{ - "name": "", - "username": "", - "password": "", - "keyId": "" -} - - -### 通过 id 更新主机身份 -PUT {{baseUrl}}/asset/host-identity/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "name": "", - "username": "", - "password": "", - "keyId": "" -} - - -### 通过 id 查询主机身份 -GET {{baseUrl}}/asset/host-identity/get?id=1 -Authorization: {{token}} - - -### 通过 id 批量查询主机身份 -GET {{baseUrl}}/asset/host-identity/list -Authorization: {{token}} - - -### 分页查询主机身份 -POST {{baseUrl}}/asset/host-identity/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "id": "", - "name": "", - "username": "", - "password": "", - "keyId": "" -} - - -### 通过 id 删除主机身份 -DELETE {{baseUrl}}/asset/host-identity/delete?id=1 -Authorization: {{token}} - diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostKeyController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostKeyController.http deleted file mode 100644 index d1be5def..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostKeyController.http +++ /dev/null @@ -1,66 +0,0 @@ -### 创建主机密钥 -POST {{baseUrl}}/asset/host-key/create -Content-Type: application/json -Authorization: {{token}} - -{ - "name": "", - "publicKey": "", - "privateKey": "", - "password": "" -} - - -### 通过 id 更新主机密钥 -PUT {{baseUrl}}/asset/host-key/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "name": "", - "publicKey": "", - "privateKey": "", - "password": "" -} - - -### 通过 id 查询主机密钥 -GET {{baseUrl}}/asset/host-key/get?id=1 -Authorization: {{token}} - -### 查询主机密钥 -POST {{baseUrl}}/asset/host-key/list -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "name": "", - "publicKey": "", - "privateKey": "", - "password": "" -} - - -### 分页查询主机密钥 -POST {{baseUrl}}/asset/host-key/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "id": "", - "name": "", - "publicKey": "", - "privateKey": "", - "password": "" -} - - -### 通过 id 删除主机密钥 -DELETE {{baseUrl}}/asset/host-key/delete?id=1 -Authorization: {{token}} - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostSftpLogController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostSftpLogController.http deleted file mode 100644 index 09028507..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostSftpLogController.http +++ /dev/null @@ -1,21 +0,0 @@ -### 分页查询 SFTP 操作日志 -POST {{baseUrl}}/asset/host-sftp/query-log -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10 -} - - -### 删除 SFTP 操作日志 -DELETE {{baseUrl}}/asset/host-sftp/delete-log?idList=1,2,3 -Authorization: {{token}} - - -### 下载文件 -GET {{baseUrl}}/asset/host-sftp/download?channelId=123&transferToken=123 - - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostTerminalController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostTerminalController.http deleted file mode 100644 index 10149189..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/HostTerminalController.http +++ /dev/null @@ -1,11 +0,0 @@ -### 获取主机终端主题 -GET {{baseUrl}}/asset/host-terminal/themes -Authorization: {{token}} - - -### 获取主机终端连接 token -GET {{baseUrl}}/asset/host-terminal/access -Authorization: {{token}} - - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/PathBookmarkController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/PathBookmarkController.http deleted file mode 100644 index 6b746a33..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/PathBookmarkController.http +++ /dev/null @@ -1,34 +0,0 @@ -### 创建路径标签 -POST {{baseUrl}}/asset/path-bookmark/create -Content-Type: application/json -Authorization: {{token}} - -{ - "name": "", - "path": "" -} - - -### 更新路径标签 -PUT {{baseUrl}}/asset/path-bookmark/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "name": "", - "path": "" -} - - -### 查询全部路径标签 -GET {{baseUrl}}/asset/path-bookmark/list -Authorization: {{token}} - - -### 删除路径标签 -DELETE {{baseUrl}}/asset/path-bookmark/delete?id=1 -Authorization: {{token}} - - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/PathBookmarkGroupController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/PathBookmarkGroupController.http deleted file mode 100644 index bc782803..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/PathBookmarkGroupController.http +++ /dev/null @@ -1,32 +0,0 @@ -### 创建路径标签分组 -POST {{baseUrl}}/asset/path-bookmark-group/create -Content-Type: application/json -Authorization: {{token}} - -{ - "name": "" -} - - -### 更新路径标签分组 -PUT {{baseUrl}}/asset/path-bookmark-group/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "name": "" -} - - -### 查询全部路径标签分组 -GET {{baseUrl}}/asset/path-bookmark-group/list -Authorization: {{token}} - - -### 删除路径标签分组 -DELETE {{baseUrl}}/asset/path-bookmark-group/delete?id=1 -Authorization: {{token}} - - -### diff --git a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/UploadTaskController.http b/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/UploadTaskController.http deleted file mode 100644 index 8013eb5c..00000000 --- a/orion-visor-module-asset/orion-visor-module-asset-service/src/main/java/com/orion/visor/module/asset/controller/UploadTaskController.http +++ /dev/null @@ -1,68 +0,0 @@ -### 创建上传任务 -POST {{baseUrl}}/asset/upload-task/create -Content-Type: application/json -Authorization: {{token}} - -{ - "remotePath": "/root/batch", - "description": "", - "hostIdList": [ - 1, - 7, - 8 - ], - "files": [ - { - "fileId": "1", - "filePath": "qr.txt", - "fileSize": 3 - }, - { - "fileId": "2", - "filePath": "dir/key.txt", - "fileSize": 3 - } - ] -} - - -### 开始上传 -POST {{baseUrl}}/asset/upload-task/start -Content-Type: application/json -Authorization: {{token}} - -{ - "id": 1 -} - - -### 查询上传任务 -GET {{baseUrl}}/asset/upload-task/get?id=1 -Authorization: {{token}} - - -### 分页查询上传任务 -POST {{baseUrl}}/asset/upload-task/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "id": "", - "userId": "", - "description": "", - "status": "" -} - - -### 删除上传任务 -DELETE {{baseUrl}}/asset/upload-task/delete?id=1 -Authorization: {{token}} - - -### 批量删除上传任务 -DELETE {{baseUrl}}/asset/upload-task/batch-delete?idList=1,2,3 -Authorization: {{token}} - -### diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/AuthenticationController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/AuthenticationController.http deleted file mode 100644 index b001570e..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/AuthenticationController.http +++ /dev/null @@ -1,23 +0,0 @@ -### 登录 - admin 用户 -POST {{baseUrl}}/infra/auth/login -Content-Type: application/json - -{ - "username": "admin", - "password": "21232f297a57a5a743894a0e4a801fc3" -} - - -### 登录 -POST {{baseUrl}}/infra/auth/login -Content-Type: application/json - -{ - "username": "", - "password": "" -} - - -### 登出 -GET {{baseUrl}}/infra/auth/logout -Authorization: {{token}} diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/DictKeyController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/DictKeyController.http deleted file mode 100644 index f7ac3d09..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/DictKeyController.http +++ /dev/null @@ -1,44 +0,0 @@ -### 创建字典配置项 -POST {{baseUrl}}/infra/dict-key/create -Content-Type: application/json -Authorization: {{token}} - -{ - "keyName": "operatorLogType", - "valueType": "1", - "extraSchema": "{}", - "description": "1" -} - - -### 更新字典配置项 -PUT {{baseUrl}}/infra/dict-key/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "keyName": "", - "valueType": "", - "extraSchema": "", - "description": "" -} - - - -### 查询全部字典配置项 -POST {{baseUrl}}/infra/dict-key/list -Authorization: {{token}} - - -### 删除字典配置项 -DELETE {{baseUrl}}/infra/dict-key/delete?id=1 -Authorization: {{token}} - - -### 批量删除字典配置项 -DELETE {{baseUrl}}/infra/dict-key/batch-delete?idList=1,2,3 -Authorization: {{token}} - - -### diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/DictValueController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/DictValueController.http deleted file mode 100644 index 12adbc92..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/DictValueController.http +++ /dev/null @@ -1,63 +0,0 @@ -### 创建字典配置值 -POST {{baseUrl}}/infra/dict-value/create -Content-Type: application/json -Authorization: {{token}} - -{ - "keyId": "", - "key": "", - "label": "", - "value": "", - "description": "", - "extra": "", - "sort": "" -} - - -### 更新字典配置值 -PUT {{baseUrl}}/infra/dict-value/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "keyId": "", - "key": "", - "label": "", - "value": "", - "description": "", - "extra": "", - "sort": "" -} - - -### 查询全部字典配置值 -POST {{baseUrl}}/infra/dict-value/list?key= -Authorization: {{token}} - - -### 分页查询字典配置值 -POST {{baseUrl}}/infra/dict-value/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "keyId": "", - "label": "", - "value": "", - "description": "" -} - - -### 删除字典配置值 -DELETE {{baseUrl}}/infra/dict-value/delete?id=1 -Authorization: {{token}} - - -### 批量删除字典配置值 -DELETE {{baseUrl}}/infra/dict-value/batch-delete?idList=1,2,3 -Authorization: {{token}} - - diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/ExpressionController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/ExpressionController.http deleted file mode 100644 index 36601d1c..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/ExpressionController.http +++ /dev/null @@ -1,11 +0,0 @@ -### 获取 cron 下次执行时间 -POST {{baseUrl}}/infra/expression/cron-next -Content-Type: application/json - -{ - "expression": "5 */3 * * * ?", - "times": 2 -} - - -### \ No newline at end of file diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/FavoriteController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/FavoriteController.http deleted file mode 100644 index 52c8640b..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/FavoriteController.http +++ /dev/null @@ -1,23 +0,0 @@ -### 添加收藏 -POST {{baseUrl}}/infra/favorite/add -Content-Type: application/json -Authorization: {{token}} - -{ - "relId": "", - "type": "HOST" -} - - -### 取消收藏 -GET {{baseUrl}}/infra/favorite/cancel -Content-Type: application/json -Authorization: {{token}} - -{ - "relId": "", - "type": "HOST" -} - - -### diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/HistoryValueController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/HistoryValueController.http deleted file mode 100644 index 864c2d34..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/HistoryValueController.http +++ /dev/null @@ -1,14 +0,0 @@ -### 分页查询历史归档 -POST {{baseUrl}}/infra/history-value/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "relId": "1", - "type": "" -} - - -### diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/MineController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/MineController.http deleted file mode 100644 index e6f62019..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/MineController.http +++ /dev/null @@ -1,48 +0,0 @@ -### 查询当前用户信息 -GET {{baseUrl}}/infra/mine/get-user -Authorization: {{token}} - - -### 更新当前用户信息 -PUT {{baseUrl}}/infra/mine/update-user -Content-Type: application/json -Authorization: {{token}} - -{ - "nickname": "名称", - "mobile": "15555555555", - "email": "123@123.com" -} - - -### 修改当前用户密码 -PUT {{baseUrl}}/infra/mine/update-password -Content-Type: application/json -Authorization: {{token}} - -{ - "beforePassword": "21232f297a57a5a743894a0e4a801fc3", - "password": "21232f297a57a5a743894a0e4a801fc3" -} - - -### 查询当前用户登录日志 -GET {{baseUrl}}/infra/mine/login-history -Authorization: {{token}} - - -### 获取当前用户会话列表 -GET {{baseUrl}}/infra/mine/user-session -Authorization: {{token}} - - -### 下线当前用户会话 -PUT {{baseUrl}}/infra/mine/offline-session -Content-Type: application/json -Authorization: {{token}} - -{ - "timestamp": 1698774195296 -} - -### \ No newline at end of file diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/OperatorLogController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/OperatorLogController.http deleted file mode 100644 index 7fc7ed88..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/OperatorLogController.http +++ /dev/null @@ -1,17 +0,0 @@ -### 分页查询操作日志 -POST {{baseUrl}}/infra/operator-log/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "userId": "", - "module": "", - "type": "", - "result": "", - "startTime": "", - "endTime": "" -} - -### \ No newline at end of file diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/PermissionController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/PermissionController.http deleted file mode 100644 index 7718d7d8..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/PermissionController.http +++ /dev/null @@ -1,15 +0,0 @@ -### 初始化角色权限缓存 -GET {{baseUrl}}/infra/permission/refresh-cache -Authorization: {{token}} - - -### 获取用户菜单 -GET {{baseUrl}}/infra/permission/menu -Authorization: {{token}} - - -### 获取用户权限 -GET {{baseUrl}}/infra/permission/permission -Authorization: {{token}} - - diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/PreferenceController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/PreferenceController.http deleted file mode 100644 index cb249876..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/PreferenceController.http +++ /dev/null @@ -1,33 +0,0 @@ -### 更新用户偏好-全部 -PUT {{baseUrl}}/infra/preference/update -Content-Type: application/json -Authorization: {{token}} - -{ - "type": "SYSTEM", - "item": "", - "value": "" -} - - -### 更新用户偏好-部分 -PUT {{baseUrl}}/infra/preference/update-partial -Content-Type: application/json -Authorization: {{token}} - -{ - "type": "SYSTEM", - "config": { - } -} - - -### 查询用户偏好 -GET {{baseUrl}}/infra/preference/get?type=SYSTEM -Authorization: {{token}} - - -### 查询默认偏好 -GET {{baseUrl}}/infra/preference/get-default?type=TERMINAL&items=shortcutSetting -Authorization: {{token}} - diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemMenuController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemMenuController.http deleted file mode 100644 index 204356d2..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemMenuController.http +++ /dev/null @@ -1,57 +0,0 @@ -### 创建菜单 -POST {{baseUrl}}/infra/system-menu/create -Content-Type: application/json -Authorization: {{token}} - -{ - "parentId": "", - "name": "", - "permission": "", - "type": "", - "sort": "", - "status": "", - "cache": "", - "icon": "", - "path": "", - "component": "", - "newWindow": "" -} - - -### 通过 id 更新菜单 -PUT {{baseUrl}}/infra/system-menu/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "parentId": "", - "name": "", - "permission": "", - "type": "", - "sort": "", - "status": "", - "cache": "", - "icon": "", - "path": "", - "component": "", - "newWindow": "" -} - - -### 通过 id 查询菜单 -GET {{baseUrl}}/infra/system-menu/get?id=1 -Authorization: {{token}} - - -### 通过 id 批量查询菜单 -GET {{baseUrl}}/infra/system-menu/list?idList=1,2,3 -Authorization: {{token}} - - -### 通过 id 删除菜单 -DELETE {{baseUrl}}/infra/system-menu/delete?id=1 -Authorization: {{token}} - - -### diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemMessageController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemMessageController.http deleted file mode 100644 index 0d0df1fa..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemMessageController.http +++ /dev/null @@ -1,39 +0,0 @@ -### 查询系统消息列表 -POST {{baseUrl}}/infra/system-message/list -Content-Type: application/json -Authorization: {{token}} - -{ - "limit": 10, - "maxId": null, - "classify": "NOTICE", - "queryCount": true, - "queryUnread": true -} - - -### 查询是否有未读消息 -GET {{baseUrl}}/infra/system-message/has-unread -Authorization: {{token}} - - -### 查询是否有未读消息 -PUT {{baseUrl}}/infra/system-message/read?id=1 -Authorization: {{token}} - - -### 更新全部系统消息为已读 -PUT {{baseUrl}}/infra/system-message/read-all?classify=NOTICE -Authorization: {{token}} - - -### 删除系统消息 -DELETE {{baseUrl}}/infra/system-message/delete?id=1 -Authorization: {{token}} - - -### 清理已读的系统消息 -DELETE {{baseUrl}}/infra/system-message/clear?classify=NOTICE -Authorization: {{token}} - -### diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemRoleController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemRoleController.http deleted file mode 100644 index 3035f8e6..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemRoleController.http +++ /dev/null @@ -1,67 +0,0 @@ -### 创建角色 -POST {{baseUrl}}/infra/system-role/create -Content-Type: application/json -Authorization: {{token}} - -{ - "name": "", - "code": "", - "status": "" -} - - -### 通过 id 更新角色 -PUT {{baseUrl}}/infra/system-role/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "name": "", - "code": "", - "status": "" -} - - -### 通过 id 更新状态 -PUT {{baseUrl}}/infra/system-role/update-status -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "status": "" -} - - -### 通过 id 查询角色 -GET {{baseUrl}}/infra/system-role/get?id=1 -Authorization: {{token}} - - -### 通过 id 批量查询角色 -GET {{baseUrl}}/infra/system-role/list?idList=1,2,3 -Authorization: {{token}} - - -### 分页查询角色 -POST {{baseUrl}}/infra/system-role/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "id": "", - "name": "", - "code": "", - "status": "" -} - - -### 通过 id 删除角色 -DELETE {{baseUrl}}/infra/system-role/delete?id=1 -Authorization: {{token}} - - -### diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemSettingController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemSettingController.http deleted file mode 100644 index eeee8fba..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemSettingController.http +++ /dev/null @@ -1,4 +0,0 @@ -### 查询应用信息 -GET {{baseUrl}}/infra/system-setting/app-info -Authorization: {{token}} - diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemUserController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemUserController.http deleted file mode 100644 index b3906f61..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/SystemUserController.http +++ /dev/null @@ -1,76 +0,0 @@ -### 创建用户 -POST {{baseUrl}}/infra/system-user/create -Content-Type: application/json -Authorization: {{token}} - -{ - "username": "", - "password": "", - "nickname": "", - "avatar": "", - "mobile": "", - "email": "", - "status": "", - "lastLoginTime": "" -} - - -### 通过 id 更新用户 -PUT {{baseUrl}}/infra/system-user/update -Content-Type: application/json -Authorization: {{token}} - -{ - "id": "", - "username": "", - "password": "", - "nickname": "", - "avatar": "", - "mobile": "", - "email": "", - "status": "", - "lastLoginTime": "" -} - - -### 通过 id 查询用户 -GET {{baseUrl}}/infra/system-user/get?id=1 -Authorization: {{token}} - - -### 通过 id 批量查询用户 -GET {{baseUrl}}/infra/system-user/list?idList=1,2,3 -Authorization: {{token}} - - -### 分页查询用户 -POST {{baseUrl}}/infra/system-user/query -Content-Type: application/json -Authorization: {{token}} - -{ - "page": 1, - "limit": 10, - "id": "", - "username": "123123", - "nickname": "123123", - "avatar": "", - "mobile": "", - "email": "", - "status": "", - "lastLoginTime": "" -} - - -### 通过 id 删除用户 -DELETE {{baseUrl}}/infra/system-user/delete?id=1 -Authorization: {{token}} - - -### 查询登录日志 -GET {{baseUrl}}/infra/system-user/login-history?username=admin -Content-Type: application/json -Authorization: {{token}} - - -### diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/TagController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/TagController.http deleted file mode 100644 index c30b2fa5..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/TagController.http +++ /dev/null @@ -1,23 +0,0 @@ -### 创建标签枚举 -POST {{baseUrl}}/infra/tag/create -Content-Type: application/json -Authorization: {{token}} - -{ - "name": "TAG1", - "type": "HOST" -} - - -### 查询标签枚举 -GET {{baseUrl}}/infra/tag/list?type=HOST -Content-Type: application/json -Authorization: {{token}} - - -### 通过 id 删除标签枚举 -DELETE {{baseUrl}}/infra/tag/delete?id=2 -Authorization: {{token}} - - -### diff --git a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/TipsController.http b/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/TipsController.http deleted file mode 100644 index 11413af0..00000000 --- a/orion-visor-module-infra/orion-visor-module-infra-service/src/main/java/com/orion/visor/module/infra/controller/TipsController.http +++ /dev/null @@ -1,11 +0,0 @@ -### 修改为已提示 -PUT {{baseUrl}}/infra/tips/tipped?key=x -Authorization: {{token}} - - -### 获取所有已提示的 key -GET {{baseUrl}}/infra/tips/get -Authorization: {{token}} - - -###