| | |
| | | import com.whyc.service.UserService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | public Response getAlmReal(@RequestBody UpsAlarmDTO upsAlarmDTO){ |
| | | return service.getAlmReal(upsAlarmDTO); |
| | | } |
| | | |
| | | @GetMapping("setAlmIsConfirmed") |
| | | @ApiOperation(value = "ups告警确认") |
| | | public Response setAlmIsConfirmed(@RequestParam int num){ |
| | | return service.setAlmIsConfirmed(num); |
| | | } |
| | | @GetMapping("cancleAlmIsConfirmed") |
| | | @ApiOperation(value = "ups告警取消") |
| | | public Response cancleAlmIsConfirmed(@RequestParam int num){ |
| | | return service.cancleAlmIsConfirmed(num); |
| | | } |
| | | |
| | | @GetMapping("delAlm") |
| | | @ApiOperation(value = "ups告警删除") |
| | | public Response delAlm(@RequestParam int num){ |
| | | return service.delAlm(num); |
| | | } |
| | | } |