创建返回结果实体类
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 .... }
|
Author:
John Doe
Permalink:
http://yoursite.com/2019/08/02/代码snip/返回结果实体类/返回结果实体类/
License:
Copyright (c) 2019 CC-BY-NC-4.0 LICENSE
Slogan:
Do you believe in DESTINY?