whyclxw
2021-12-10 563091d892270b53ea5ef7e9c82c82ea3b39142a
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.PwrdevAlarm;
import com.whyc.service.PwrdevAlarmService;
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;
 
@Api(tags = "电源实时告警")
@RestController
@RequestMapping("/PowerAlarmAction")
public class PwrdevAlarmController {
 
    @Autowired
    private PwrdevAlarmService service;
 
    //电源实时告警查询
    @ApiOperation(value = "电源实时告警查询",notes="almTypes,almLevels,page,stationName1,stationName2,stationName3,stationName5,usrId,almSource")
    @PostMapping("/getAllPage")
    public Response getAllPage(@RequestBody PwrdevAlarm pwrdevAlarm){
        return service.getAllPage(pwrdevAlarm);
    }
}