|
|
@@ -3,11 +3,6 @@ package com.shkpr.service.customgateway.core.constants;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Getter;
|
|
|
|
|
|
-import java.util.Arrays;
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
-import static com.shkpr.service.customgateway.core.constants.DeviceField.*;
|
|
|
-
|
|
|
/**
|
|
|
* 设备种类
|
|
|
*
|
|
|
@@ -18,9 +13,17 @@ import static com.shkpr.service.customgateway.core.constants.DeviceField.*;
|
|
|
@AllArgsConstructor
|
|
|
public enum DeviceKind {
|
|
|
//压力流量计
|
|
|
- FLOW_PRESS("flow", "流量计", 1, "WaterMeter", Arrays.asList(FLOW_CUR, FLOW_TOTAL_POS, FLOW_TOTAL_REV, PRESS_CUR)),
|
|
|
+ FLOW_PRESS("flow_press", "流量计", 1, "WaterMeter"),
|
|
|
//流量计
|
|
|
- FLOW("flow", "流量计", 2, "WaterMeter", Arrays.asList(FLOW_CUR, FLOW_TOTAL_POS, FLOW_TOTAL_REV)),
|
|
|
+ FLOW("flow", "流量计", 2, "WaterMeter"),
|
|
|
+ //压力计
|
|
|
+ PRESS("press", "压力计", 3, "WaterMeter"),
|
|
|
+ //水质仪
|
|
|
+ QUALITY("quality", "多参数水质仪", 10, "WaterQuality"),
|
|
|
+ //液位计
|
|
|
+ LEVEL("level", "液位计", 11, "LiquidLevel"),
|
|
|
+ //水泵
|
|
|
+ WATER_PUMP("water_pump","水泵", 20, "WaterPump"),
|
|
|
;
|
|
|
/**
|
|
|
* 标识
|
|
|
@@ -38,8 +41,4 @@ public enum DeviceKind {
|
|
|
* 表名
|
|
|
*/
|
|
|
private final String measurement;
|
|
|
- /**
|
|
|
- * 包含字段
|
|
|
- */
|
|
|
- private final List<DeviceField> fields;
|
|
|
}
|