ZCH-18 新增 2 个对象用于处理 Topic 的返回数据
This commit is contained in:
parent
7bfa867207
commit
b911e962d8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue