| | |
| | | |
| | | |
| | | 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.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @Api(tags = "通信电源告警规则") |
| | | @Api(tags = "告警管理-通信电源告警规则") |
| | | @RequestMapping("PwrdevAlarmParamAction") |
| | | public class PwrdevAlarmParamController { |
| | | @Autowired |
| | | private PwrdevAlarmParamService service; |
| | | |
| | | @ApiOperation("通信电源告警规则--查询") |
| | | @PostMapping("/getAllPage") |
| | | private Response getAllPage(@RequestParam int powerDeviceId){ |
| | | @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); |
| | | } |
| | | } |