| | |
| | | |
| | | 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; |
| | |
| | | @Api(tags = "山西专用电源告警参数表") |
| | | @RestController |
| | | @RequestMapping("pwrDevAlarmParamForSX") |
| | | public class PwrDevAlarmParamForSXController { |
| | | public class PwrDevAlarmParamForSXController extends BaseController{ |
| | | |
| | | @Autowired |
| | | private PwrDevAlarmParamForSXService service; |
| | | |
| | | @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){ |
| | | @PostMapping("alarmSourceList") |
| | | public Response updateAlarmSourceList(@RequestBody List<PwrDevAlarmParamForSX> list) { |
| | | return service.updateAlarmSourceList(list); |
| | | } |
| | | |
| | | @ApiOperation(value = "开关机房使能") |
| | | @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); |
| | | } |
| | | |
| | | } |