package com.***.aurora.util;
import java.io.Serializable;
import java.util.List;
/**
* 分页結果
*
* @param <T>
*/
public class PageResult<T extends Serializable> implements Serializable {
/**
* 序列化版本
*/
private static final long serialVersionUID = 1L;
/**
* 当前页码,从1开始
*/
private int pageIndex;
/**
* 页面大小
*/
private int pageSize;
/**
* 总数
*/
private int total;
/**
* 总页数
*/
private int pages;
/**
* 数据列表
*/
private List<T> data;
/**
* 获取pageIndex
*
* @return the pageIndex
*/
public int getPageIndex() {
return pageIndex;
}
/**
* 设置pageIndex
*
* @param pageIndex
* the pageIndex to set
*/
public void setPageIndex(int pageIndex) {
this.pageIndex = pageIndex;
}
/**
* 获取pageSize
*
* @return the pageSize
*/
public int getPageSize() {
return pageSize;
}
/**
* 设置pageSize
*
* @param pageSize
* the pageSize to set
*/
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
/**
* 获取total
*
* @return the total
*/
public int getTotal() {
return total;
}
/**
* 设置total
*
* @param total
* the total to set
*/
public void setTotal(int total) {
this.total = total;
}
/**
* 获取pages
*
* @return the pages
*/
public int getPages() {
return pages;
}
/**
* 设置pages
*
* @param pages
* the pages to set
*/
public void setPages(int pages) {
this.pages = pages;
}
public List<T> getData() {
return data;
}
public void setData(List<T> data) {
this.data = data;
}
}