1
0

refactor(common): 将 Page 实体的 items 类型从 Stream 改为 List

This commit is contained in:
2026-01-07 15:21:11 +08:00
parent f439381e04
commit 919664ba84
3 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
package com.lanyuanxiaoyao.service.template.common.entity;
import java.util.stream.Stream;
import java.util.List;
/**
* 分页数据封装类
@@ -27,5 +27,5 @@ import java.util.stream.Stream;
* @param items 数据流,包含当前页的所有记录
* @param total 总记录数,用于计算总页数和显示分页信息
*/
public record Page<ENTITY>(Stream<ENTITY> items, long total) {
public record Page<ENTITY>(List<ENTITY> items, long total) {
}