From e3c471b3d16107cfec8c1699753bf6d71a81cbde Mon Sep 17 00:00:00 2001
From: "1437892690@qq.com" <1437892690@qq.com>
Date: Sat, 22 Mar 2025 14:54:48 +0800
Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20CMDB=E5=BA=94=E7=94=A8?=
=?UTF-8?q?=E6=B8=85=E5=8D=95=E6=94=B9=E6=88=90=E6=A8=A1=E5=9E=8B=E5=B1=82?=
=?UTF-8?q?=E7=BA=A7=E5=8F=AF=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
关联 #[1349157963399168]CMDB应用清单改成模型层级可配置 http://192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/939050947543042/1349157963399168
---
...oftwareServiceEnvAppModuleAppSystemVo.java | 77 +++++++++++++++++++
.../SoftwareServiceOsVo.java | 51 ++++++++++++
.../SoftwareServicePortsVo.java | 40 ++++++++++
3 files changed, 168 insertions(+)
create mode 100644 src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/OsSoftwareServiceEnvAppModuleAppSystemVo.java
create mode 100644 src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/SoftwareServiceOsVo.java
create mode 100644 src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/SoftwareServicePortsVo.java
diff --git a/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/OsSoftwareServiceEnvAppModuleAppSystemVo.java b/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/OsSoftwareServiceEnvAppModuleAppSystemVo.java
new file mode 100644
index 00000000..0ef94cb3
--- /dev/null
+++ b/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/OsSoftwareServiceEnvAppModuleAppSystemVo.java
@@ -0,0 +1,77 @@
+/*
+ * Copyright (C) 2025 深圳极向量科技有限公司 All Rights Reserved.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ */
+
+package neatlogic.framework.autoexec.dto.resourcecenter.sceneviewfielddeclare;
+
+import neatlogic.framework.cmdb.annotation.ResourceField;
+import neatlogic.framework.cmdb.annotation.ResourceType;
+import neatlogic.framework.common.constvalue.ApiParamType;
+import neatlogic.framework.restful.annotation.EntityField;
+@ResourceType(name = "scence_os_softwareservice_env_appmodule_appsystem", label = "操作系统与软件服务、环境、模块及应用场景", moduleId= "autoexec", functionPathList = {"配置管理/应用清单"})
+public class OsSoftwareServiceEnvAppModuleAppSystemVo {
+ @EntityField(name = "ID", type = ApiParamType.LONG)
+ @ResourceField(name = "id")
+ private Long id;
+
+ @EntityField(name = "名称", type = ApiParamType.STRING)
+ @ResourceField(name = "name")
+ private String name;
+
+ @EntityField(name = "类型ID", type = ApiParamType.LONG)
+ @ResourceField(name = "type_id")
+ private Long typeId;
+ @EntityField(name = "类型名称", type = ApiParamType.STRING)
+ @ResourceField(name = "type_name")
+ private String typeName;
+ @EntityField(name = "类型Label", type = ApiParamType.STRING)
+ @ResourceField(name = "type_label")
+ private String typeLabel;
+
+ @EntityField(name = "资产id", type = ApiParamType.LONG)
+ @ResourceField(name = "resource_id")
+ private Long resourceId;
+
+ @EntityField(name = "环境ID", type = ApiParamType.LONG)
+ @ResourceField(name = "env_id")
+ private Long envId;
+ @EntityField(name = "环境名称", type = ApiParamType.STRING)
+ @ResourceField(name = "env_name")
+ private String envName;
+ @EntityField(name = "环境序号", type = ApiParamType.INTEGER)
+ @ResourceField(name = "env_seq_no")
+ private Integer envSeqNo;
+
+ @EntityField(name = "应用模块ID", type = ApiParamType.LONG)
+ @ResourceField(name = "app_module_id")
+ private Long appModuleId;
+ @EntityField(name = "应用模块名", type = ApiParamType.STRING)
+ @ResourceField(name = "app_module_name")
+ private String appModuleName;
+ @EntityField(name = "应用模块简称", type = ApiParamType.STRING)
+ @ResourceField(name = "app_module_abbr_name")
+ private String appModuleAbbrName;
+
+ @EntityField(name = "应用系统ID", type = ApiParamType.LONG)
+ @ResourceField(name = "app_system_id")
+ private Long appSystemId;
+ @EntityField(name = "应用系统名", type = ApiParamType.STRING)
+ @ResourceField(name = "app_system_name")
+ private String appSystemName;
+ @EntityField(name = "应用系统简称", type = ApiParamType.STRING)
+ @ResourceField(name = "app_system_abbr_name")
+ private String appSystemAbbrName;
+}
diff --git a/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/SoftwareServiceOsVo.java b/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/SoftwareServiceOsVo.java
new file mode 100644
index 00000000..bf9d20ec
--- /dev/null
+++ b/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/SoftwareServiceOsVo.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright (C) 2025 深圳极向量科技有限公司 All Rights Reserved.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ */
+
+package neatlogic.framework.autoexec.dto.resourcecenter.sceneviewfielddeclare;
+
+import neatlogic.framework.cmdb.annotation.ResourceField;
+import neatlogic.framework.cmdb.annotation.ResourceType;
+import neatlogic.framework.common.constvalue.ApiParamType;
+import neatlogic.framework.restful.annotation.EntityField;
+
+@ResourceType(name = "scence_softwareservice_os", label = "软件服务与操作系统场景", moduleId= "autoexec")
+public class SoftwareServiceOsVo {
+ @EntityField(name = "ID", type = ApiParamType.LONG)
+ @ResourceField(name = "id")
+ private Long id;
+
+ @EntityField(name = "名称", type = ApiParamType.STRING)
+ @ResourceField(name = "name")
+ private String name;
+
+ @EntityField(name = "类型ID", type = ApiParamType.LONG)
+ @ResourceField(name = "type_id")
+ private Long typeId;
+ @EntityField(name = "类型名称", type = ApiParamType.STRING)
+ @ResourceField(name = "type_name")
+ private String typeName;
+ @EntityField(name = "类型Label", type = ApiParamType.STRING)
+ @ResourceField(name = "type_label")
+ private String typeLabel;
+
+ @EntityField(name = "系统ID", type = ApiParamType.LONG)
+ @ResourceField(name = "os_id")
+ private Long osId;
+ @EntityField(name = "系统名称", type = ApiParamType.STRING)
+ @ResourceField(name = "os_name")
+ private String osName;
+}
diff --git a/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/SoftwareServicePortsVo.java b/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/SoftwareServicePortsVo.java
new file mode 100644
index 00000000..dc957471
--- /dev/null
+++ b/src/main/java/neatlogic/framework/autoexec/dto/resourcecenter/sceneviewfielddeclare/SoftwareServicePortsVo.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2025 深圳极向量科技有限公司 All Rights Reserved.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ */
+
+package neatlogic.framework.autoexec.dto.resourcecenter.sceneviewfielddeclare;
+
+import neatlogic.framework.cmdb.annotation.ResourceField;
+import neatlogic.framework.cmdb.annotation.ResourceType;
+import neatlogic.framework.common.constvalue.ApiParamType;
+import neatlogic.framework.restful.annotation.EntityField;
+
+@ResourceType(name = "scence_softwareservice_ports", label = "软件服务服务端口场景", moduleId= "autoexec", functionPathList = {"下载作业剧本节点接口/autoexec/job/phase/nodes/download"})
+@ResourceType(name = "scence_osservice_ports", label = "操作系统服务端口场景", moduleId= "autoexec", functionPathList = {"下载作业剧本节点接口/autoexec/job/phase/nodes/download"})
+public class SoftwareServicePortsVo {
+ @EntityField(name = "ID", type = ApiParamType.LONG)
+ @ResourceField(name = "id")
+ private Long id;
+ @EntityField(name = "service_ports_id", type = ApiParamType.LONG)
+ @ResourceField(name = "service_ports_id")
+ private Long servicePortsId;
+ @EntityField(name = "名称", type = ApiParamType.STRING)
+ @ResourceField(name = "name")
+ private String name;
+ @EntityField(name = "listen_port", type = ApiParamType.INTEGER)
+ @ResourceField(name = "listen_port")
+ private Integer listenPort;
+}
--
Gitee