com.arextest.web.model.contract.PagingRequest Maven / Gradle / Ivy
The newest version!
package com.arextest.web.model.contract;
public interface PagingRequest {
Integer getPageSize();
void setPageSize(Integer pageSize);
Integer getPageIndex();
void setPageIndex(Integer pageIndex);
Boolean getNeedTotal();
void setNeedTotal(Boolean needTotal);
default boolean checkPaging() {
if (this.getPageIndex() == null) {
return false;
}
if (this.getPageSize() == null || this.getPageSize() == 0) {
return false;
}
if (this.getPageSize() > 100) {
return false;
}
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy