Administrator há 2 anos atrás
pai
commit
66bb4377d5

+ 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;