Administrator 2 years ago
parent
commit
66bb4377d5
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/main/java/com/xiesx/fastboot/base/pagination/PaginationVo.java

+ 11 - 0
src/main/java/com/xiesx/fastboot/base/pagination/PaginationVo.java

@@ -11,6 +11,17 @@ import lombok.Data;
 @Data
 public class PaginationVo {
 
+    public PaginationVo(){}
+
+    public PaginationVo(Integer page, Integer limit, Integer size) {
+        if(page != null)
+            this.page = page;
+        if(limit != null)
+            this.limit = limit;
+        if(size != null)
+            this.size = size;
+    }
+
     public Integer page = 1;
 
     public Integer limit = 25;