public static <T> CommonPager<T> result(final PageParameter pageParameter, final Supplier<Integer> countSupplier, final Supplier<List<T>> listSupplier) {
        Integer count = countSupplier.get();
        if (Objects.nonNull(count) && count > 0) {
            return new CommonPager<>(new PageParameter(pageParameter.getCurrentPage(), pageParameter.getPageSize(), count), listSupplier.get());
        }
        return new CommonPager<>(new PageParameter(pageParameter.getCurrentPage(), pageParameter.getPageSize(), 0), Collections.emptyList());
    }
Result common pager.

@param <T> the type parameter
@param pageParameter the page parameter
@param countSupplier the count supplier
@param listSupplier the list supplier
@return the common pager
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/page/PageResultUtils.java