@GetMapping("/findPageByQuery")
    @RequiresPermissions("system:namespace:list")
    public ShenyuAdminResult findPageByQuery(final String namespaceId, final String name,
                                             @RequestParam @NotNull(message = "currentPage not null") final Integer currentPage,
                                             @RequestParam @NotNull(message = "pageSize not null") final Integer pageSize) {
        NamespaceQuery query = new NamespaceQuery();
        query.setNamespaceId(namespaceId);
        query.setName(name);
        query.setPageParameter(new PageParameter(currentPage, pageSize));
        CommonPager<NamespaceVO> commonPager = namespaceService.listByPage(query);
        return ShenyuAdminResult.success(ShenyuResultMessage.QUERY_SUCCESS, commonPager);
    }
Find namespace page by query.

@param namespaceId the namespace id
@param name        name
@param currentPage current page of list
@param pageSize    page size of query
@return the shenyu result
shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/NamespaceController.java