class AlertRobotsAdminController {

    @Autowired
    private AlertRobotsService alertRobotsService;

    @WebAspect
    @Operation(summary = "更新机器人参数", description = "新增或更新对应的机器人")
    @PutMapping
    public RespModel<String> save(@Validated @RequestBody AlertRobotsDTO alertRobotsDTO) {
        alertRobotsService.saveOrUpdate(alertRobotsDTO.convertTo());
        return new RespModel<>(RespEnum.UPDATE_OK);
    }

    @WebAspect
    @Operation(summary = "查找机器人参数", description = "查找所有机器人参数列表")
    @GetMapping("/list")
    @Parameters(value = {
            @Parameter(name = "scene", allowEmptyValue = true, description = "使用场景"),
            @Parameter(name = "page", description = "页码"),
            @Parameter(name = "pageSize", description = "页尺寸")
    })
    public RespModel<CommentPage<AlertRobots>> listAll(
            @RequestParam(name = "scene", required = false) String scene,
            @RequestParam(name = "page") int page,
            @RequestParam(name = "pageSize", defaultValue = "20") int pageSize
    ) {
        return new RespModel<>(RespEnum.SEARCH_OK, alertRobotsService.findRobots(new Page<>(page, pageSize), null, scene));
    }

    @WebAspect
    @Operation(summary = "查找机器人参数", description = "查找所有机器人参数列表")
    @GetMapping("/listAll")
    @Parameters(value = {
            @Parameter(name = "scene", allowEmptyValue = true, description = "使用场景")
    })
    public RespModel<List<AlertRobots>> listAll(
            @RequestParam(name = "scene", required = false) String scene
    ) {
        return new RespModel<>(RespEnum.SEARCH_OK, alertRobotsService.findAllRobots(null, scene));
    }

    @WebAspect
    @Operation(summary = "删除机器人参数", description = "删除对应id的机器人参数")
    @Parameter(name = "id", description = "id")
    @DeleteMapping
    public RespModel<String> delete(@RequestParam(name = "id") int id) {<FILL_FUNCTION_BODY>}

    @WebAspect
    @Operation(summary = "获取机器人对类型机器人在相应使用场景下的默认模板", description = "获取机器人对类型机器人在相应使用场景下的默认模板")
    @Parameter(name = "type", description = "type")
    @Parameter(name = "scene", description = "scene")
    @GetMapping("/findDefaultTemplate")
    @WhiteUrl
    public RespModel<String> getDefaultNoticeTemplate(@RequestParam(name = "type") int type, @RequestParam(name = "scene") String scene) {
        return new RespModel<>(RespEnum.SEARCH_OK, alertRobotsService.getDefaultNoticeTemplate(type, scene));
    }
}

        if (alertRobotsService.removeById(id)) {
            return new RespModel<>(RespEnum.DELETE_OK);
        } else {
            return new RespModel<>(RespEnum.DELETE_FAIL);
        }
    
<no_super_class>