Procházet zdrojové kódy

采用builder方式

周浩 před 9 roky
rodič
revize
3db5780e2c

+ 4 - 2
hsweb-web-bean/src/main/java/org/hsweb/web/bean/common/PagerResult.java

@@ -24,15 +24,17 @@ public class PagerResult<Po> implements Serializable {
         return total;
     }
 
-    public void setTotal(int total) {
+    public PagerResult<Po> setTotal(int total) {
         this.total = total;
+        return this;
     }
 
     public List<Po> getData() {
         return data;
     }
 
-    public void setData(List<Po> data) {
+    public PagerResult<Po> setData(List<Po> data) {
         this.data = data;
+        return this;
     }
 }