whyclxw
2021-12-03 8f3accbcecceb36575244100e20bb7bacd43f276
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
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;
 
@RestController
@RequestMapping("/DevalarmDataAction")
@Api(tags = "设备实时告警")
public class DevalarmDataController {
 
    @Autowired
    private DevalarmDataService service;
 
    //设备告警实时查询
    @ApiOperation(value = "设备告警实时查询")
    @PostMapping("/serchByInfo")
    public Response serchByInfo(@RequestBody DevAlarmPar par){
        return  service.serchByInfo(par);
    }
}