@GetMapping("")
    public AdminResult<CommonPager<RuleVO>> queryRules(final String selectorId, final String name,
                                                       @RequestParam @NotNull final Integer currentPage,
                                                       @RequestParam @NotNull final Integer pageSize,
                                                       @Valid @Existed(message = "namespaceId is not existed",
                                                               provider = NamespaceMapper.class) final String namespaceId) {
        final RuleQueryCondition condition = new RuleQueryCondition();
        condition.setUserId(SessionUtil.visitor().getUserId());
        condition.setSelectors(ListUtil.of(selectorId));
        condition.setKeyword(name);
        condition.setNamespaceId(namespaceId);
        return searchAdaptor(new PageCondition<>(currentPage, pageSize, condition));
    }
query rules.

@param selectorId  selector id.
@param name        rule name.
@param currentPage current page.
@param pageSize    page size.
@param namespaceId namespaceId.
@return {@linkplain ShenyuAdminResult}
shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/RuleController.java