feat(cli): 增加主机是否启用的能力

This commit is contained in:
v-zhangjc9
2024-10-22 08:59:13 +08:00
parent 7249419624
commit e6a03122a6
3 changed files with 26 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ package com.lanyuanxiaoyao.service.cli.core;
*/
public class HostInfo {
private String ip;
private Boolean enabled = true;
private Boolean useAuthority = false;
private String username;
private String password;
@@ -20,6 +21,14 @@ public class HostInfo {
this.ip = ip;
}
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public Boolean getUseAuthority() {
return useAuthority;
}
@@ -47,7 +56,8 @@ public class HostInfo {
@Override
public String toString() {
return "HostInfo{" +
"ip='" + ip + '\'' +
"enabled=" + enabled +
", ip='" + ip + '\'' +
", useAuthority=" + useAuthority +
", username='" + username + '\'' +
", password='" + password + '\'' +