whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/controller/DevalarmDataController.java
@@ -1,28 +1,54 @@
package com.whyc.controller;
import com.whyc.dto.Response;
import com.whyc.dto.paramter.AlarmPar;
import com.whyc.dto.paramter.DevAlarmPar;
import com.whyc.service.DevalarmDataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
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.RestController;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/DevalarmDataAction")
@Api(tags = "设备实时告警")
public class DevalarmDataController {
@Api(tags = "告警管理-设备告警实时查询")
public class DevalarmDataController extends BaseController{
    @Autowired
    private DevalarmDataService service;
    //设备告警实时查询
    //@ApiOperation(value = "设备告警实时查询")
    @PostMapping("/serchByInfo")
    public Response serchByInfo(@RequestBody  AlarmPar par){
    @ApiOperation(value = "设备告警实时查询")
    @PostMapping("serchByInfo")
    public Response serchByInfo(@RequestBody DevAlarmPar par){
        return  service.serchByInfo(par);
    }
    //设备告警确认告警
    @ApiOperation(value = "设备告警确认告警")
    @GetMapping("update")
    public Response update(@RequestParam int num){
        return  service.update(num);
    }
    //设备告警取消告警
    @ApiOperation(value = "设备告警取消告警")
    @GetMapping("cancel")
    public Response cancel(@RequestParam int num){
        return  service.cancel(num);
    }
    //设备告警删除告警
    @ApiOperation(value = "设备告警删除告警")
    @GetMapping("delete")
    public Response delete(@RequestParam int num) {
        return service.delete(num);
    }
    @GetMapping("searchNums")
    @ApiOperation(value = "设备告警数查询")
    public Response searchNums() {
        return service.searchNums();
    }
}