parent
252ca9a3d1
commit
95c61f2679
@ -0,0 +1,23 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum CapabilityEnum implements IBaseEnum<String> { |
||||
|
||||
M_100("100", "100M"), |
||||
M_1000("1000", "1000M"), |
||||
M_500("500", "500M"), |
||||
M_2000("2000", "2000M"), |
||||
CAPABILITY_NULL("", ""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
CapabilityEnum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,25 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum FePortNumberEnum implements IBaseEnum<String> { |
||||
|
||||
FE_0("fe_0", "0个"), |
||||
FE_1("fe_1", "1个"), |
||||
FE_2("fe_2", "2个"), |
||||
FE_3("fe_3", "3个"), |
||||
FE_4("fe_4", "4个"), |
||||
FE_8("fe_8", "8个"), |
||||
FE_NULL("", ""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
FePortNumberEnum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,25 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum GePortNumberEnum implements IBaseEnum<String> { |
||||
|
||||
GE_0("ge_0", "0个"), |
||||
GE_1("ge_1", "1个"), |
||||
GE_2("ge_2", "2个"), |
||||
GE_3("ge_3", "3个"), |
||||
GE_4("ge_4", "4个"), |
||||
GE_8("ge_8", "8个"), |
||||
GE_NULL("", ""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
GePortNumberEnum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,21 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum Ipv6EnableEnum implements IBaseEnum<String> { |
||||
|
||||
IPV6ENABLE_1("ipv6enable_1", "是"), |
||||
IPV6ENABLE_0("ipv6enable_0", "否"), |
||||
IPV6ENABLE_NULL("", ""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
Ipv6EnableEnum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,24 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum LanNumberEnum implements IBaseEnum<String> { |
||||
|
||||
LAN_1("lan_1", "1口"), |
||||
LAN_2("lan_2", "2口"), |
||||
LAN_4("lan_4", "4口"), |
||||
LAN_8("lan_8", "8口"), |
||||
LAN_9("lan_9", "9口"), |
||||
LAN_NULL("", ""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
LanNumberEnum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,21 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum MeshEnum implements IBaseEnum<String> { |
||||
|
||||
MESH_1("mesh_1", "是"), |
||||
MESH_0("mesh_0", "否"), |
||||
MESH_NULL("", ""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
MeshEnum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,21 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum RebootEnum implements IBaseEnum<String> { |
||||
|
||||
REBOOT_YES("reboot_yes", "是"), |
||||
REBOOT_NO("reboot_no", "否"), |
||||
REBOOT_NULL("", ""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
RebootEnum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,22 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum Tr143Enum implements IBaseEnum<String> { |
||||
|
||||
TR143_1("TR143_1", "是"), |
||||
TR143_0("TR143_0", "否"), |
||||
TR143_2("TR143_2", "路由支持"), |
||||
TR143_NULL("",""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
Tr143Enum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,27 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum VoipPortNumberEnum implements IBaseEnum<String> { |
||||
|
||||
VOIP_0("voip_0", "不支持语音"), |
||||
VOIP_32("voip_32", "32口语音"), |
||||
VOIP_16("voip_16", "16口语音"), |
||||
VOIP_8("voip_8", "8口语音"), |
||||
VOIP_4("voip_4", "4口语音"), |
||||
VOIP_2("voip_2", "2口语音"), |
||||
VOIP_1("voip_1", "1口语音"), |
||||
|
||||
VOIP_NULL("", ""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
VoipPortNumberEnum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,22 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum VoipProtocolEnum implements IBaseEnum<String> { |
||||
|
||||
VOIP_PROTOCOL_0("voipprotocol_0", "无"), |
||||
SIP("voipprotocol_1", "SIP"), |
||||
SIP_AND_H_248("voipprotocol_2", "SIP及H.248"), |
||||
VOIP_PROTOCOL_NULL("", ""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
VoipProtocolEnum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,22 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum WifiConfigEnum implements IBaseEnum<String> { |
||||
|
||||
WIFI_0("wifi_0", "无频"), |
||||
WIFI_1("wifi_1", "单频"), |
||||
WIFI_2("wifi_2", "双频"), |
||||
WIFI_NULL("", ""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
WifiConfigEnum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,23 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum WifiTypeEnum implements IBaseEnum<String> { |
||||
|
||||
WIFI_TYPE_0("wifitype_0", "无WIFI"), |
||||
WIFI_TYPE_1("wifitype_1", "WIFI4"), |
||||
WIFI_TYPE_2("wifitype_2", "WIFI5"), |
||||
WIFI_TYPE_3("wifitype_3", "WIFI6"), |
||||
WIFI_TYPE_NULL("",""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
WifiTypeEnum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,21 @@ |
||||
package com.bellmann.common.enums; |
||||
|
||||
import com.bellmann.common.base.IBaseEnum; |
||||
import lombok.Getter; |
||||
|
||||
public enum YwgEnum implements IBaseEnum<String> { |
||||
|
||||
YWG_1("ywg_1", "是"), |
||||
YWG_0("ywg_0", "否"), |
||||
YWG_NULL("", ""); |
||||
@Getter |
||||
private String value; |
||||
|
||||
@Getter |
||||
private String label; |
||||
|
||||
YwgEnum(String value, String label) { |
||||
this.value = value; |
||||
this.label = label; |
||||
} |
||||
} |
@ -0,0 +1,51 @@ |
||||
package com.bellmann.model.vo; |
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
@Schema(description = "设备能力信息视图") |
||||
public class CapabilityVO { |
||||
|
||||
@Schema(description = "设备类型软件版本ID") |
||||
private String typeAndVerId; |
||||
|
||||
@Schema(description = "LAN口数量") |
||||
private String lanNumber; |
||||
|
||||
@Schema(description = "VOIP端口数量") |
||||
private String voipPortNumber; |
||||
|
||||
@Schema(description = "GE端口数") |
||||
private String gePortNumber; |
||||
|
||||
@Schema(description = "FE端口数") |
||||
private String fePortNumber; |
||||
|
||||
@Schema(description = "WIFI类型") |
||||
private String wifiType; |
||||
|
||||
@Schema(description = "WIFI配置") |
||||
private String wifiConfig; |
||||
|
||||
@Schema(description = "语音协议") |
||||
private String voipProtocol; |
||||
|
||||
@Schema(description = "设备能力") |
||||
private String capability; |
||||
|
||||
@Schema(description = "是否支持MESH组网") |
||||
private String mesh; |
||||
|
||||
@Schema(description = "是否支持云网关") |
||||
private String ywg; |
||||
|
||||
@Schema(description = "是否支持测速") |
||||
private String tr143; |
||||
|
||||
@Schema(description = "是否支持IPV6") |
||||
private String ipv6Enable; |
||||
|
||||
@Schema(description = "是否重启生效") |
||||
private String reboot; |
||||
} |
Loading…
Reference in new issue