| | |
| | | import com.whyc.pojo.web_site.AlarmDiagnosis; |
| | | import com.whyc.service.AlarmDiagnosisService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | private AlarmDiagnosisService service; |
| | | |
| | | @GetMapping("getPage") |
| | | @ApiOperation("分页查询") |
| | | public Response<PageInfo<AlarmDiagnosis>> getPage(Integer pageNum, Integer pageSize, @RequestParam(required = false) String type) { |
| | | return service.getPage(pageNum, pageSize,type); |
| | | } |
| | | |
| | | @PostMapping("add") |
| | | @ApiOperation(value = "告警诊断添加") |
| | | public Response add(AlarmDiagnosis diagnosis) { |
| | | return service.add(diagnosis); |
| | | } |
| | | |
| | | @PostMapping("update") |
| | | @ApiOperation(value = "告警诊断修改") |
| | | public Response update(AlarmDiagnosis diagnosis) { |
| | | return service.update(diagnosis); |
| | | } |
| | | |
| | | @PostMapping("delete") |
| | | @ApiOperation(value = "告警诊断删除") |
| | | public Response delete(Integer id) { |
| | | return service.delete(id); |
| | | } |