PageReqVO.java
569 Bytes
package com.yohoufo.user.requestVO;
import com.yohoufo.user.common.BaseVO;
/**
* Created by shengguo.cai on 2018/9/12.
*/
public class PageReqVO extends BaseVO{
private int limit = 10;
private int page = 1;
public int getLimit() {
return limit;
}
public void setLimit(int limit) {
this.limit = limit<10 ? 10 : limit;
}
public int getPage() {
return page;
}
public void setPage(int page) {
this.page = page<1 ? 1 : page;
}
public int getRowNo(){
return (page-1)*limit;
}
}