iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/api/point/DataPointApi.java
@@ -24,9 +24,13 @@ String PREFIX = ApiConstants.PREFIX + "/point"; @PostMapping(PREFIX + "/point/{pointNo}") @PostMapping(PREFIX + "/point-no/{pointNo}") @Operation(summary = "查询测点信息") ApiPointDTO getPoint(@PathVariable("pointNo") String pointNo); ApiPointDTO getPointByNo(@PathVariable("pointNo") String pointNo); @PostMapping(PREFIX + "/point-id/{pointId}") @Operation(summary = "查询测点信息") ApiPointDTO getPointById(@PathVariable("pointId") String pointId); @PostMapping(PREFIX + "/current") @Operation(summary = "查询多个测点当前值") iailab-module-data/iailab-module-data-api/src/main/java/com/iailab/module/data/enums/Freq.java
对比新文件 @@ -0,0 +1,32 @@ package com.iailab.module.data.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * 频率类型 */ @Getter @AllArgsConstructor public enum Freq { NET10("NET10", 10), NET30("NET30", 30), NET60("NET60",60); private String code; private Integer value; public static Freq getEumByCode(String code) { if (code == null) { return null; } for (Freq statusEnum : Freq.values()) { if (statusEnum.getCode().equals(code)) { return statusEnum; } } return null; } }