ZCH-18 新增 2 个对象用于处理 Topic 的返回数据

This commit is contained in:
YuCheng Hu 2023-10-04 08:07:28 -04:00
parent 7bfa867207
commit b911e962d8
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,30 @@
package com.ossez.discourse.common.model.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.List;
public class PostStream implements Serializable {
private static final long serialVersionUID = 7382606905010995326L;
private List<Post> posts;
private List<Long> stream;
public List<Post> getPosts() {
return posts;
}
public void setPosts(List<Post> posts) {
this.posts = posts;
}
public List<Long> getStream() {
return stream;
}
public void setStream(List<Long> stream) {
this.stream = stream;
}
}

View File

@ -0,0 +1,28 @@
package com.ossez.discourse.common.model.dto;
import java.io.Serializable;
import java.util.List;
public class SuggestedTopics implements Serializable {
private static final long serialVersionUID = 7382606905010995326L;
private List<Post> posts;
private List<Long> stream;
public List<Post> getPosts() {
return posts;
}
public void setPosts(List<Post> posts) {
this.posts = posts;
}
public List<Long> getStream() {
return stream;
}
public void setStream(List<Long> stream) {
this.stream = stream;
}
}