whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/controller/PwrAlarmVerifyController.java
@@ -1,27 +1,25 @@
package com.whyc.controller;
import com.whyc.dto.Response;
import com.whyc.pojo.PwrdevAlarm;
import com.whyc.service.PwrDevAlarmVerifyService;
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("pwrAlarmVerify")
@Api(tags = "电池告警确认")
public class PwrAlarmVerifyController {
@Api(tags = "电源告警确认")
public class PwrAlarmVerifyController extends BaseController{
    @Autowired
    private PwrDevAlarmVerifyService 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 PwrdevAlarm param){
        return service.getPage(param);
    }
}