From 6fb4770a7375017f3aef98f33d01899d65c4241f Mon Sep 17 00:00:00 2001
From: DoudiNCer <doudi@outlook.lv>
Date: Tue, 14 Nov 2023 19:09:41 +0800
Subject: [PATCH] =?UTF-8?q?[Feature#]PageData=E7=B1=BB=E7=9A=84praisePage(?=
 =?UTF-8?q?)=E6=96=B9=E6=B3=95=E6=B7=BB=E5=8A=A0=E8=BF=94=E5=9B=9E?=
 =?UTF-8?q?=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../java/com/sipc/stellar/pojo/model/pageData/PageData.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/java/com/sipc/stellar/pojo/model/pageData/PageData.java b/src/main/java/com/sipc/stellar/pojo/model/pageData/PageData.java
index 354f63f..b2f74b9 100644
--- a/src/main/java/com/sipc/stellar/pojo/model/pageData/PageData.java
+++ b/src/main/java/com/sipc/stellar/pojo/model/pageData/PageData.java
@@ -25,12 +25,14 @@ public class PageData<T> {
      * 通过mybatis-plus的分页参数构造响应
      *
      * @param iPage mybatis-plus分页器
+     * @return 返回分页结果本身
      */
-    public void praisePage(IPage<T> iPage) {
+    public PageData<T> praisePage(IPage<T> iPage) {
         this.resultList = iPage.getRecords();
         this.total = iPage.getTotal();
         this.pageNo = iPage.getCurrent();
         this.pageSize = iPage.getSize();
         this.pages = iPage.getPages();
+        return this;
     }
 }
\ No newline at end of file
-- 
GitLab