| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.BattAlarmDataVerify; |
| | | import com.whyc.dto.paramter.AlarmPar; |
| | | import com.whyc.service.BattAlarmDataVerifyService; |
| | | 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.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | @RestController |
| | | @RequestMapping("battAlarmDataVerify") |
| | | @Api(tags = "电池告警确认") |
| | | public class BattAlarmDataVerifyController { |
| | | public class BattAlarmDataVerifyController extends BaseController{ |
| | | |
| | | @Autowired |
| | | private BattAlarmDataVerifyService 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 AlarmPar param){ |
| | | return service.getPage(param); |
| | | } |
| | | |
| | | } |