| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | return service.delete(id); |
| | | } |
| | | |
| | | @GetMapping("levelList") |
| | | @ApiOperation(value = "查询已存在的告警级别") |
| | | public Response getLevelListWithSameAlarm(@RequestParam Integer deviceFlag, |
| | | @RequestParam String field, |
| | | @RequestParam Integer thresholdFlag){ |
| | | return service.getLevelListWithSameAlarm(deviceFlag,field,thresholdFlag); |
| | | } |
| | | |
| | | /** |
| | | * 检查限制阈值的范围 |
| | | * @return |
| | | */ |
| | | @GetMapping("thresholdValue") |
| | | @ApiOperation(value="查询阈值范围,======接口待完成======") |
| | | @PostMapping("thresholdValue") |
| | | @ApiOperation(value="查询阈值范围") |
| | | public Response getThresholdValueByLevel(@RequestBody AlarmRule alarmRule){ |
| | | return service.getThresholdValueByLevel(alarmRule); |
| | | } |