From 323fe960bd07d0961b1b8f9ae8a4ad237450858e Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期一, 12 四月 2021 17:26:47 +0800
Subject: [PATCH] update 更新基础包与核心包 lombok 化

---
 ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableDataInfo.java |   53 +++++++----------------------------------------------
 1 files changed, 7 insertions(+), 46 deletions(-)

diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableDataInfo.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableDataInfo.java
index 71aed2c..72c284f 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableDataInfo.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableDataInfo.java
@@ -1,5 +1,8 @@
 package com.ruoyi.common.core.page;
 
+import lombok.*;
+import lombok.experimental.Accessors;
+
 import java.io.Serializable;
 import java.util.List;
 
@@ -8,6 +11,10 @@
  * 
  * @author ruoyi
  */
+
+@Data
+@NoArgsConstructor
+@Accessors(chain = true)
 public class TableDataInfo<T> implements Serializable
 {
     private static final long serialVersionUID = 1L;
@@ -25,13 +32,6 @@
     private String msg;
 
     /**
-     * 琛ㄦ牸鏁版嵁瀵硅薄
-     */
-    public TableDataInfo()
-    {
-    }
-
-    /**
      * 鍒嗛〉
      * 
      * @param list 鍒楄〃鏁版嵁
@@ -43,43 +43,4 @@
         this.total = total;
     }
 
-    public long getTotal()
-    {
-        return total;
-    }
-
-    public void setTotal(long total)
-    {
-        this.total = total;
-    }
-
-    public List<T> getRows()
-    {
-        return rows;
-    }
-
-    public void setRows(List<T> rows)
-    {
-        this.rows = rows;
-    }
-
-    public int getCode()
-    {
-        return code;
-    }
-
-    public void setCode(int code)
-    {
-        this.code = code;
-    }
-
-    public String getMsg()
-    {
-        return msg;
-    }
-
-    public void setMsg(String msg)
-    {
-        this.msg = msg;
-    }
 }

--
Gitblit v1.9.3