简单调整,并去除 lombok。

This commit is contained in:
2023-04-12 11:01:42 +08:00
parent 2babb5fb2d
commit 56ce9a5fa6
4 changed files with 62 additions and 29 deletions

View File

@@ -18,9 +18,6 @@ package xyz.zhouxy.plusone.commons.util;
import java.util.List;
import lombok.Setter;
import lombok.ToString;
/**
* 返回分页查询的结果
*
@@ -29,8 +26,6 @@ import lombok.ToString;
* @author <a href="https://gitee.com/zhouxy108">ZhouXY</a>
* @see PagingAndSortingQueryParams
*/
@ToString
@Setter
public class PageDTO<T> {
private Long total;
@@ -53,4 +48,20 @@ public class PageDTO<T> {
return content;
}
// Setters
public void setTotal(Long total) {
this.total = total;
}
public void setContent(List<T> content) {
this.content = content;
}
// Setters end
@Override
public String toString() {
return "PageDTO [total=" + total + ", content=" + content + "]";
}
}