给三种实例增加serverAddress字段

This commit is contained in:
2023-03-22 20:22:28 +08:00
parent 268d23cb36
commit d00bb26d25
7 changed files with 32 additions and 1 deletions
@@ -52,6 +52,11 @@ public class Container implements Serializable {
*/ */
private String webUi; private String webUi;
/**
* 实际服务器地址(不带协议,不带端口号)
*/
private String serverAddress;
/** /**
* 宿主机id * 宿主机id
*/ */
@@ -57,6 +57,11 @@ public class HostMachine implements Serializable {
*/ */
private String manageIp; private String manageIp;
/**
* 实际服务器地址(不带协议,不带端口号)
*/
private String serverAddress;
/** /**
* 宿主机id(0代表物理机没有宿主机) * 宿主机id(0代表物理机没有宿主机)
*/ */
@@ -39,6 +39,11 @@ public class ContainerVo {
*/ */
private String imageName; private String imageName;
/**
* 实际服务器地址(不带协议,不带端口号)
*/
private String serverAddress;
/** /**
* WebUi URL * WebUi URL
*/ */
@@ -34,6 +34,11 @@ public class HostVo {
*/ */
private String avatar; private String avatar;
/**
* 实际服务器地址(不带协议,不带端口号)
*/
private String serverAddress;
/** /**
* 管理ip地址 * 管理ip地址
*/ */
@@ -53,6 +53,11 @@ public class VirtualMachineListVo {
*/ */
private String manageIp; private String manageIp;
/**
* 实际服务器地址(不带协议,不带端口号)
*/
private String serverAddress;
/** /**
* 核心线程数 * 核心线程数
*/ */
@@ -54,6 +54,11 @@ public class VmVo {
*/ */
private String osName; private String osName;
/**
* 实际服务器地址(不带协议,不带端口号)
*/
private String serverAddress;
/** /**
* 管理ip地址 * 管理ip地址
*/ */
@@ -12,6 +12,7 @@
<result property="sshId" column="ssh_id" jdbcType="BIGINT"/> <result property="sshId" column="ssh_id" jdbcType="BIGINT"/>
<result property="osId" column="os_id" jdbcType="BIGINT"/> <result property="osId" column="os_id" jdbcType="BIGINT"/>
<result property="manageIp" column="manage_ip" jdbcType="VARCHAR"/> <result property="manageIp" column="manage_ip" jdbcType="VARCHAR"/>
<result property="serverAddress" column="server_address" jdbcType="VARCHAR"/>
<result property="hostMachineId" column="host_machine_id" jdbcType="INTEGER"/> <result property="hostMachineId" column="host_machine_id" jdbcType="INTEGER"/>
<result property="threads" column="threads" jdbcType="BIGINT"/> <result property="threads" column="threads" jdbcType="BIGINT"/>
<result property="memory" column="memory" jdbcType="BIGINT"/> <result property="memory" column="memory" jdbcType="BIGINT"/>
@@ -29,7 +30,7 @@
. .
id id
,hm.name,hm.description, ,hm.name,hm.description,
hm.avatar,hm.ssh_id,hm.os_id, hm.avatar,hm.ssh_id,hm.os_id,hm.server_address,
hm.manage_ip,hm.host_machine_id,hm.threads, hm.manage_ip,hm.host_machine_id,hm.threads,
hm.memory,hm.host_machine_state,notify, hm.memory,hm.host_machine_state,notify,
hm.create_time,hm.create_by,hm.update_time, hm.create_time,hm.create_by,hm.update_time,