Selaa lähdekoodia

SPage页面增加token,防表单重复提交

hejq 8 vuotta sitten
vanhempi
commit
f13901210a

+ 12 - 1
search-api-b2b/src/main/java/com/uas/search/b2b/model/SPage.java

@@ -21,6 +21,8 @@ public class SPage<T> implements Serializable {
 
 
 	private List<T> content;
 	private List<T> content;
 
 
+	private String token;
+
 	public SPage() {
 	public SPage() {
 		super();
 		super();
 	}
 	}
@@ -91,10 +93,19 @@ public class SPage<T> implements Serializable {
 		this.content = content;
 		this.content = content;
 	}
 	}
 
 
+	public String getToken() {
+		return token;
+	}
+
+	public void setToken(String token) {
+		this.token = token;
+	}
+
 	@Override
 	@Override
 	public String toString() {
 	public String toString() {
 		return "SPage [totalPage=" + totalPage + ", totalElement=" + totalElement + ", page=" + page + ", size=" + size
 		return "SPage [totalPage=" + totalPage + ", totalElement=" + totalElement + ", page=" + page + ", size=" + size
-				+ ", first=" + first + ", last=" + last + ", content=" + content + "]";
+				+ ", first=" + first + ", last=" + last + ", content=" + content + ", token=" + token + "]";
 	}
 	}
 
 
+
 }
 }