创建返回结果实体类

1
2
3
4
5
6
7
8
9
10
11
12
13
14
 /**
* 分页结果类
* @param <T>
*/
public class PageResult<T> {
private Long total;
private List<T> rows;
public PageResult(Long total, List<T> rows) {
super();
this.total = total;
this.rows = rows;
}
//getter and setter ....
}