whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/controller/PwrdevTimeOutAlarmController.java
@@ -5,22 +5,27 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
@Api(tags = "通讯电源超时告警")
@Api(tags = "告警管理-通讯电源超时告警")
@RestController
@RequestMapping("/PowerAlarmTimeoutAction")
@RequestMapping("PowerAlarmTimeoutAction")
public class PwrdevTimeOutAlarmController {
    @Autowired
    private PwrdevTimeOutAlarmService service;
    //设备超时告警
    @PutMapping("/getList")
    @ApiOperation("设备超时告警")
    //设备超时告警--查询
    @GetMapping("/getList")
    @ApiOperation("设备超时告警--查询")
    public Response getList(){
        return service.getList();
    }
    //设备超时告警--删除
    @GetMapping("/delete")
    @ApiOperation("设备超时告警--删除")
    public Response delete(@RequestParam int num){
        return service.delete(num);
    }
}