lxw
2023-05-25 f3c27fb78447449a950ba73c5e72ceda64ad8a12
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.whyc.controller;
 
 
import com.whyc.dto.Response;
import com.whyc.pojo.PwrdevAlarmParam;
import com.whyc.service.PwrdevAlarmParamService;
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.util.List;
 
@RestController
@Api(tags = "告警管理-通信电源告警规则")
@RequestMapping("PwrdevAlarmParamAction")
public class PwrdevAlarmParamController {
    @Autowired
    private PwrdevAlarmParamService service;
 
    @ApiOperation("通信电源告警规则--查询")
    @GetMapping("/getAllPage")
    public Response getAllPage(@RequestParam int powerDeviceId){
        return  service.getAllPage(powerDeviceId);
    }
 
    @ApiOperation("通信电源告警规则--新建模板")
    @PostMapping("/createModel")
    public Response createModel(@RequestBody List<PwrdevAlarmParam> list){
        return  service.createModel(list);
    }
    @ApiOperation("通信电源告警规则--导出模板")
    @GetMapping("/exportModel")
    public Response exportModel(@RequestParam int powerDeviceId){
        return  service.exportModel(powerDeviceId);
    }
 
    @ApiOperation("通信电源告警规则--查询模板")
    @GetMapping("/getTemplate")
    public Response getTemplate(){
        return service.getTemplate();
    }
 
    @ApiOperation("通信电源告警规则--编辑参数")
    @PostMapping("/update")
    public Response update(@RequestBody PwrdevAlarmParam param){
        return service.update(param);
    }
}