Browse Source

分页出参修改

danchaofan1412 4 năm trước cách đây
mục cha
commit
7986415ff6

+ 5 - 0
framework-boot/src/main/java/com/mrxu/framework/boot/entity/PageResult.java

@@ -17,6 +17,9 @@ public class PageResult <T> implements Serializable {
     @ApiModelProperty(value = "每页大小")
     private long pageSize;
 
+    @ApiModelProperty(value = "总页数")
+    private long totalPage;
+
     @ApiModelProperty(value = "总数条数")
     private long count;
 
@@ -28,6 +31,8 @@ public class PageResult <T> implements Serializable {
         this.pageNum = page.getCurrent();
         this.pageSize = page.getSize();
         this.count = page.getTotal();
+        this.totalPage = page.getPages();
+
     }
 
 }