| | |
| | | return new Response<Map<Integer, Map<Integer, List<AppAlmParam>>>>().set(1,map); |
| | | } |
| | | |
| | | @GetMapping("listToBeConfirmed") |
| | | @ApiOperation(value = "查询待确认的告警类型列表") |
| | | public Response<List<Integer>> getListToBeConfirmed(@RequestParam Integer type){ |
| | | List<Integer> list = service.getListToBeConfirmed(type); |
| | | return new Response<List<Integer>>().set(1,list); |
| | | } |
| | | |
| | | @GetMapping("allList2") |
| | | @ApiOperation(value = "查询参数列表") |
| | | public Response<List<AppAlmParam>> getAllList2(){ |
| | |
| | | return new Response<List<AppAlmParam>>().set(1,list); |
| | | } |
| | | |
| | | @PutMapping("list") |
| | | @PostMapping("list") |
| | | @ApiOperation(value = "添加或者移除参数配置") |
| | | public Response updateList(@RequestParam int operationFlag,@RequestBody List<AppAlmParam> paramList){ |
| | | service.updateList(paramList,operationFlag); |
| | | return new Response().setII(1,"更新成功"); |
| | | } |
| | | |
| | | @PutMapping("list2") |
| | | @PostMapping("list2") |
| | | @ApiOperation(value = "更新参数配置") |
| | | public Response updateList2(@RequestBody List<AppAlmParam> paramList){ |
| | | service.updateList2(paramList); |