whyclxw
2024-01-24 173fbe24c210e6aca743687d305b5f922aea7953
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.whyc.controller;
 
import com.whyc.dto.Response;
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.*;
 
@RestController
@RequestMapping("/DevalarmDataAction")
@Api(tags = "告警管理-设备告警实时查询")
public class DevalarmDataController extends BaseController{
 
    @Autowired
    private DevalarmDataService service;
 
    //设备告警实时查询
    @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();
    }
 
    
}