class ResourcesController {

    @Autowired
    private ResourcesService resourcesService;

    @WebAspect
    @Operation(summary = "查询所有资源连接", description = "查询所有资源连接")
    @GetMapping("/list")
    @Parameters(value = {
            @Parameter(name = "page", description = "页码"),
            @Parameter(name = "pageSize", description = "每页请求数量")
    })
    public RespModel<CommentPage<ResourcesDTO>> listResources(@RequestParam(name = "page") int page,
                                                              @RequestParam(name = "pageSize") int pageSize,
                                                              @RequestParam(name = "path", required = false) String path) {<FILL_FUNCTION_BODY>}

    @WebAspect
    @Operation(summary = "刷新请求资源列表", description = "查询所有资源连接")
    @PostMapping("/refresh")
    public RespModel<CommentPage<ResourcesDTO>> refreshResources() {
        resourcesService.init();
        return listResources(1, 20, null);
    }


    @WebAspect
    @Operation(summary = "编辑资源鉴权状态", description = "编辑资源鉴权状态")
    @PutMapping("/edit")
    public RespModel<String> editResources(@RequestBody ResourceParam resourceParam) {

        resourcesService.updateResourceAuth(resourceParam.getId(), resourceParam.getNeedAuth());

        return RespModel.result(RespEnum.UPDATE_OK);
    }


    @WebAspect
    @Operation(summary = "查询当前角色下资源鉴权转态", description = "查询当前角色下资源鉴权转态")
    @GetMapping("/roleResource")
    @Parameters(value = {
            @Parameter(name = "roleId", description = "角色 id")
    })
    public RespModel<List<ResourcesDTO>> listRoleResource(@RequestParam(name = "roleId") Integer roleId) {

        return RespModel.result(RespEnum.SEARCH_OK, resourcesService.listRoleResource(roleId));
    }

}

        Page<Resources> pageable = new Page<>(page, pageSize);

        return RespModel.result(RespEnum.SEARCH_OK, resourcesService.listResource(pageable, path, false));
    
<no_super_class>