| | |
| | | @RestController |
| | | @Api(tags = "告警管理-通信电源告警规则") |
| | | @RequestMapping("PwrdevAlarmParamAction") |
| | | public class PwrdevAlarmParamController { |
| | | public class PwrdevAlarmParamController extends BaseController{ |
| | | @Autowired |
| | | private PwrdevAlarmParamService service; |
| | | |
| | | @ApiOperation("通信电源告警规则--查询") |
| | | @GetMapping("/getAllPage") |
| | | private Response getAllPage(@RequestParam int powerDeviceId){ |
| | | public Response getAllPage(@RequestParam int powerDeviceId){ |
| | | return service.getAllPage(powerDeviceId); |
| | | } |
| | | |
| | | @ApiOperation("通信电源告警规则--新建模板") |
| | | @PostMapping("/createModel") |
| | | private Response createModel(@RequestBody List<PwrdevAlarmParam> list){ |
| | | public Response createModel(@RequestBody List<PwrdevAlarmParam> list){ |
| | | return service.createModel(list); |
| | | } |
| | | @ApiOperation("通信电源告警规则--导出模板") |
| | | @GetMapping("/exportModel") |
| | | private Response exportModel(@RequestParam int powerDeviceId){ |
| | | public Response exportModel(@RequestParam int powerDeviceId){ |
| | | return service.exportModel(powerDeviceId); |
| | | } |
| | | |
| | | @ApiOperation("通信电源告警规则--查询模板") |
| | | @GetMapping("/getTemplate") |
| | | public Response getTemplate(){ |
| | | return service.getTemplate(); |
| | | } |
| | | |
| | | @ApiOperation("通信电源告警规则--编辑参数") |
| | | @PostMapping("/update") |
| | | public Response update(@RequestBody PwrdevAlarmParam param){ |
| | | return service.update(param); |
| | | } |
| | | } |