|
@@ -4,16 +4,17 @@ import lombok.AllArgsConstructor;
|
|
import lombok.Getter;
|
|
import lombok.Getter;
|
|
import org.hswebframework.web.dict.Dict;
|
|
import org.hswebframework.web.dict.Dict;
|
|
import org.hswebframework.web.dict.EnumDict;
|
|
import org.hswebframework.web.dict.EnumDict;
|
|
|
|
+import org.hswebframework.web.dict.I18nEnumDict;
|
|
|
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
@Getter
|
|
@Getter
|
|
@Dict("device-state")
|
|
@Dict("device-state")
|
|
-public enum DeviceState implements EnumDict<String> {
|
|
|
|
|
|
+public enum DeviceState implements I18nEnumDict<String> {
|
|
notActive("未激活"),
|
|
notActive("未激活"),
|
|
offline("离线"),
|
|
offline("离线"),
|
|
online("在线");
|
|
online("在线");
|
|
|
|
|
|
- private String text;
|
|
|
|
|
|
+ private final String text;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public String getValue() {
|
|
public String getValue() {
|