package com.iailab.module.data.point.common; import lombok.AllArgsConstructor; import lombok.Getter; /** * @author PanZhibao * @Description * @createTime 2025年06月27日 */ @Getter @AllArgsConstructor public enum MeasurePointValueType { SIMULATE("SIMULATE", "模拟量"), DIGITAL("DIGITAL", "数字量"); private String code; private String desc; public static MeasurePointValueType getEumByCode(String code) { if (code == null) { return null; } for (MeasurePointValueType statusEnum : MeasurePointValueType.values()) { if (statusEnum.getCode().equals(code)) { return statusEnum; } } return null; } }