lxw
2023-11-24 a21f9150961e555475455e2d80ea3c5dd14e59d2
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.UpsAlarmDTO;
import com.whyc.service.UpspwrdevAlarmHistoryService;
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 java.text.ParseException;
 
@RestController
@RequestMapping("upsHisAlm")
@Api(tags = "ups历史告警")
public class UpspwrdevAlarmHistoryController {
 
    @Autowired
    private UpspwrdevAlarmHistoryService service;
 
    @PostMapping("getAlmHis")
    @ApiOperation(value = "ups历史告警数据")
    public Response getAlmHis(@RequestBody UpsAlarmDTO upsAlarmDTO) throws ParseException {
        return service.getAlmHis(upsAlarmDTO);
    }
}