| | |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.PwrDevAlarmParamForSX; |
| | | import com.whyc.pojo.PwrappAcdcinf; |
| | | import com.whyc.service.PwrDevAlarmParamForSXService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | @ApiOperation(value = "查询列表") |
| | | @GetMapping("list") |
| | | public Response getList(@RequestParam int powerDeviceId){ |
| | | public Response getList(@RequestParam int powerDeviceId) { |
| | | return service.getList(powerDeviceId); |
| | | } |
| | | |
| | | @ApiOperation(value = "更新告警来源列表") |
| | | @PutMapping("alarmSourceList") |
| | | public Response updateAlarmSourceList(@RequestBody List<PwrDevAlarmParamForSX> list){ |
| | | public Response updateAlarmSourceList(@RequestBody List<PwrDevAlarmParamForSX> list) { |
| | | return service.updateAlarmSourceList(list); |
| | | } |
| | | |
| | | @ApiOperation(value = "开关机房使能") |
| | | @PutMapping("alarmEnNode") |
| | | public Response updateAlarmEnNode(@RequestBody List<PwrDevAlarmParamForSX> list) { |
| | | return service.updateAlarmEnNode(list); |
| | | } |
| | | |
| | | @ApiOperation(value = "更新电源单条告警") |
| | | @PutMapping("updatePwrAlarm") |
| | | public Response updatePwrAlarm(@RequestBody PwrDevAlarmParamForSX pwrAlarm) { |
| | | return service.updatePwrAlarm(pwrAlarm); |
| | | } |
| | | |
| | | } |