whyclxw
2024-04-28 b25b814a949d2065a61fd3167206ffb51a57af65
src/main/java/com/whyc/controller/AppAlmParamController.java
@@ -27,14 +27,28 @@
        return new Response<Map<Integer, Map<Integer, List<AppAlmParam>>>>().set(1,map);
    }
    @PutMapping("list")
    @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(){
        List<AppAlmParam> list = service.getAllList2();
        return new Response<List<AppAlmParam>>().set(1,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);