| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.paramter.AlarmPar; |
| | | import com.whyc.dto.paramter.DevAlarmPar; |
| | | import com.whyc.pojo.DevAlarmDataVerify; |
| | | import com.whyc.service.DevAlarmDataVerifyService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @RequestMapping("devAlarmDataVerify") |
| | |
| | | @Autowired |
| | | private DevAlarmDataVerifyService service; |
| | | |
| | | @GetMapping("page") |
| | | @PostMapping("page") |
| | | @ApiOperation("查询分页") |
| | | public Response<Object> getPage(@RequestParam int pageNum, @RequestParam int pageSize){ |
| | | return service.getPage(pageNum,pageSize); |
| | | public Response<Object> getPage(@RequestBody DevAlarmPar param){ |
| | | return service.getPage(param); |
| | | } |
| | | |
| | | } |