public static <T> PageResult<T> of(List<T> data, Long total, PageQueryParam param) {
        return new PageResult<>(data, total, param.getPageNo(), param.getPageSize());
    }
Construct paging return object

@param data object returned
@param total total number of items
@param param paging parameters
@param <T> The returned object type
@return paging return object
chat2db-server/chat2db-server-tools/chat2db-server-tools-base/src/main/java/ai/chat2db/server/tools/base/wrapper/result/PageResult.java