|
|
@@ -3,14 +3,13 @@ package com.mrxu.framework.boot.entity;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.mrxu.framework.boot.MrxuConst;
|
|
|
import com.mrxu.framework.boot.util.MrxuAssert;
|
|
|
-import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
-public class PageParam <T> extends Page<T> {
|
|
|
+public class PageParam<T> extends Page<T> {
|
|
|
|
|
|
//重写父类方法,加数据验证
|
|
|
@Override
|
|
|
public Page<T> setSize(long size) {
|
|
|
- MrxuAssert.isTrue(size<= MrxuConst.MAX_PAGE_SIZE, "每页大小不能大于"+MrxuConst.MAX_PAGE_SIZE);
|
|
|
+ MrxuAssert.isTrue(size <= MrxuConst.MAX_PAGE_SIZE, "每页大小不能大于" + MrxuConst.MAX_PAGE_SIZE);
|
|
|
super.setSize(size);
|
|
|
return this;
|
|
|
}
|