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);
|
}
|
|
}
|