lxw
2023-05-25 f3c27fb78447449a950ba73c5e72ceda64ad8a12
src/main/java/com/whyc/controller/PwrdevTimeOutAlarmController.java
@@ -5,23 +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.GetMapping;
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;
    //设备超时告警
    //设备超时告警--查询
    @GetMapping("/getList")
    @ApiOperation("设备超时告警")
    @ApiOperation("设备超时告警--查询")
    public Response getList(){
        return service.getList();
    }
    //设备超时告警--删除
    @GetMapping("/delete")
    @ApiOperation("设备超时告警--删除")
    public Response delete(@RequestParam int num){
        return service.delete(num);
    }
}