|
|
@@ -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();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|