|
@@ -1,6 +1,7 @@
|
|
|
package com.game.common.core.page;
|
|
|
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
+import lombok.Data;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
import java.util.List;
|
|
@@ -10,7 +11,8 @@ import java.util.List;
|
|
|
*
|
|
|
* @author ruoyi
|
|
|
*/
|
|
|
-@ApiModel("分页对象")
|
|
|
+@Data
|
|
|
+@ApiModel(value = "分页", description = "分页")
|
|
|
public class TableDataInfo<T> implements Serializable
|
|
|
{
|
|
|
private static final long serialVersionUID = 1L;
|
|
@@ -46,43 +48,4 @@ public class TableDataInfo<T> implements Serializable
|
|
|
this.total = total;
|
|
|
}
|
|
|
|
|
|
- public long getTotal()
|
|
|
- {
|
|
|
- return total;
|
|
|
- }
|
|
|
-
|
|
|
- public void setTotal(long total)
|
|
|
- {
|
|
|
- this.total = total;
|
|
|
- }
|
|
|
-
|
|
|
- public List<?> 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;
|
|
|
- }
|
|
|
}
|