| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.paramter.AlarmPar; |
| | | import com.whyc.dto.paramter.DevAlarmPar; |
| | | import com.whyc.service.DevalarmDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @RequestMapping("/DevalarmDataAction") |
| | | @Api(tags = "设备实时告警") |
| | | @Api(tags = "告警管理-设备告警实时查询") |
| | | public class DevalarmDataController { |
| | | |
| | | @Autowired |
| | |
| | | |
| | | //设备告警实时查询 |
| | | @ApiOperation(value = "设备告警实时查询") |
| | | @PostMapping("/serchByInfo") |
| | | @PostMapping("serchByInfo") |
| | | public Response serchByInfo(@RequestBody DevAlarmPar par){ |
| | | return service.serchByInfo(par); |
| | | } |
| | | |
| | | //设备告警确认告警 |
| | | @ApiOperation(value = "设备告警确认告警") |
| | | @GetMapping("update") |
| | | public Response update(@RequestParam int num){ |
| | | return service.update(num); |
| | | } |
| | | |
| | | //设备告警取消告警 |
| | | @ApiOperation(value = "设备告警取消告警") |
| | | @GetMapping("cancel") |
| | | public Response cancel(@RequestParam int num){ |
| | | return service.cancel(num); |
| | | } |
| | | |
| | | //设备告警删除告警 |
| | | @ApiOperation(value = "设备告警删除告警") |
| | | @GetMapping("delete") |
| | | public Response delete(@RequestParam int num){ |
| | | return service.delete(num); |
| | | } |
| | | |
| | | @GetMapping("searchNums") |
| | | @ApiOperation( value = "设备告警数查询") |
| | | public Response searchNums() { |
| | | return service.searchNums(); |
| | | } |
| | | |
| | | } |