| | |
| | | @Api(tags = "山西专用电源告警参数表") |
| | | @RestController |
| | | @RequestMapping("pwrDevAlarmParamForSX") |
| | | public class PwrDevAlarmParamForSXController { |
| | | public class PwrDevAlarmParamForSXController extends BaseController{ |
| | | |
| | | @Autowired |
| | | private PwrDevAlarmParamForSXService service; |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "更新告警来源列表") |
| | | @PutMapping("alarmSourceList") |
| | | @PostMapping("alarmSourceList") |
| | | public Response updateAlarmSourceList(@RequestBody List<PwrDevAlarmParamForSX> list) { |
| | | return service.updateAlarmSourceList(list); |
| | | } |
| | | |
| | | @ApiOperation(value = "开关机房使能") |
| | | @PutMapping("alarmEnNode") |
| | | @PostMapping("alarmEnNode") |
| | | public Response updateAlarmEnNode(@RequestBody List<PwrDevAlarmParamForSX> list) { |
| | | return service.updateAlarmEnNode(list); |
| | | } |
| | | |
| | | @ApiOperation(value = "更新电源单条告警") |
| | | @PostMapping("updatePwrAlarm") |
| | | public Response updatePwrAlarm(@RequestBody PwrDevAlarmParamForSX pwrAlarm) { |
| | | return service.updatePwrAlarm(pwrAlarm); |
| | | } |
| | | |
| | | } |