lxw
2023-11-23 41a225ee3c3becadcafa81afdee20be7e6c9e3b7
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.pojo.UserInf;
import com.whyc.service.UpspwrdevAlarmService;
import com.whyc.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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 javax.annotation.Resource;
 
@RestController
@RequestMapping("upsAlm")
@Api(tags = "ups告警")
public class UpspwrdevAlarmController {
    @Resource
    private UpspwrdevAlarmService service;
 
    @PostMapping("getAlmReal")
    @ApiOperation(value = "ups告警推送实时数据")
    public Response getAlmReal(@RequestBody UpsAlarmDTO upsAlarmDTO){
        return service.getAlmReal(upsAlarmDTO);
    }
}