whyclxw
2024-09-11 96dc63d17a20a17110bb68789f31196970ff396a
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
package com.whyc.controller;
 
import com.whyc.dto.DalmDto;
import com.whyc.dto.Response;
import com.whyc.service.BatttestdataInfService;
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.*;
 
import java.text.ParseException;
import java.util.Map;
 
@RestController
@Api(tags = "历史告警管理")
@RequestMapping("tinf")
public class DevalarmDataHisController {
    @Autowired
    private DevalarmDataService dataService;
 
    @ApiOperation(value = "测试实时告警")
    @PostMapping("getDAlmInf")
    public Response getDAlmInf(@RequestParam int uid, @RequestBody DalmDto dto){
        return dataService.getDAlmInf(uid,dto);
    }
 
    @ApiOperation(value = "获取历史告警")
    @PostMapping("getDAlmHis")
    public Response getDAlmHis( @RequestBody DalmDto dto) throws ParseException {
        return dataService.getDAlmHis(dto);
    }
}