| | |
| | | } |
| | | |
| | | /** |
| | | * 查询所有 |
| | | * @return |
| | | */ |
| | | @GetMapping("/listAll") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入alarm") |
| | | public R<List> listAll() { |
| | | List pages = alarmService.listAll(); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 获取最后一个记录 |
| | | */ |
| | | @GetMapping("/getLimit") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入alarm") |
| | | public R<List<AlarmVO>> getLimit(AlarmVO alarm, Query query) { |
| | | List<AlarmVO> pages = alarmService.getLimit(); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 新增 |
| | | */ |
| | | @PostMapping("/save") |