package market.Qms.common;

public class RequestModel<T> {
	/**
	 * 当前页
	 */
	private int pageIndex;
	
	/**
	 * 页数据量
	 */
	private int pageSize;
	
	/**
	 * 忽略的记录数
	 */
	private int skipResults;
	
	/**
	 * 其他参数
	 */
	private T model;

	public int getSkipResults() {
		skipResults=pageSize*(pageIndex-1);
		return skipResults;
	}

	public int getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public T getModel() {
		return model;
	}

	public void setModel(T model) {
		this.model = model;
	}
}
