parent
cd76a52332
commit
acc06c1ab5
@ -0,0 +1,22 @@
|
||||
package cc.aspark.result;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 封装分页查询结果
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PageResult<T> implements Serializable {
|
||||
|
||||
private long total; //总记录数
|
||||
|
||||
private List<T> records; //当前页数据集合
|
||||
|
||||
}
|
Loading…
Reference in new issue