feat(cli): 增加主机是否启用的能力
This commit is contained in:
@@ -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 + '\'' +
|
||||
|
||||
Reference in New Issue
Block a user