| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @Api(tags = "电源告警-实时告警") |
| | | import java.util.List; |
| | | |
| | | @Api(tags = "告警管理-电源实时告警") |
| | | @RestController |
| | | @RequestMapping("/PowerAlarmAction") |
| | | public class PwrdevAlarmController { |
| | | @RequestMapping("PowerAlarmAction") |
| | | public class PwrdevAlarmController extends BaseController{ |
| | | |
| | | @Autowired |
| | | private PwrdevAlarmService service; |
| | |
| | | return service.delete(num); |
| | | } |
| | | |
| | | //电源实时删除告警批量 |
| | | @ApiOperation(value = "电源实时删除告警批量--通讯电源") |
| | | @PostMapping("/deletepro") |
| | | public Response deletepro(@RequestBody List<Integer> list){ |
| | | return service.deletepro(list); |
| | | } |
| | | |
| | | //电源告警个数 |
| | | @ApiOperation(value = "电源告警个数") |
| | | @GetMapping("/getAlarmNum") |