PageReqVO.java
553 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;
}
public int getPage() {
return page;
}
public void setPage(int page) {
this.page = page<1 ? 1 : page;
}
public int getRowNo(){
return (page-1)*limit;
}
}