package com.iailab.module.data.point.common;
|
|
import lombok.AllArgsConstructor;
|
import lombok.Getter;
|
|
/**
|
* @author PanZhibao
|
* @Description
|
* @createTime 2024年05月12日
|
*/
|
@Getter
|
@AllArgsConstructor
|
public enum StoreTypeEnum {
|
|
RELATION("relation", "关系库"),
|
INFLUXDB("influxdb", "时序库");
|
|
private String code;
|
private String desc;
|
|
public static PointDataTypeEnum getEumByCode(String code) {
|
if (code == null) {
|
return null;
|
}
|
|
for (PointDataTypeEnum statusEnum : PointDataTypeEnum.values()) {
|
if (statusEnum.getCode().equals(code)) {
|
return statusEnum;
|
}
|
}
|
return null;
|
}
|
}
|