|
|
@@ -4,6 +4,7 @@ import com.github.microservice.models.type.DeviceType;
|
|
|
import com.zhongshu.card.client.model.base.SuperModel;
|
|
|
import com.zhongshu.card.client.model.org.OrganizationModel;
|
|
|
import com.zhongshu.card.client.model.org.OrganizationSimpleModel;
|
|
|
+import com.zhongshu.card.client.utils.type.DataState;
|
|
|
import com.zhongshu.card.client.utils.type.OnLineState;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.Data;
|
|
|
@@ -61,4 +62,16 @@ public class DeviceInfoModel extends SuperModel {
|
|
|
|
|
|
@Schema(description = "设备IP地址")
|
|
|
private String ip;
|
|
|
+
|
|
|
+ @Schema(description = "数据状态")
|
|
|
+ private DataState state;
|
|
|
+
|
|
|
+ private String stateStr;
|
|
|
+
|
|
|
+ public String getStateStr() {
|
|
|
+ if (state != null) {
|
|
|
+ return state.getRemark();
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
}
|