You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
1.8 KiB
100 lines
1.8 KiB
package com.community.pocket.entity.po;
|
|
|
|
import com.community.pocket.entity.po.android.MyInfo;
|
|
import com.community.pocket.util.TableName;
|
|
import org.bson.types.ObjectId;
|
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
|
|
//论坛贴
|
|
@Document(TableName.forum)
|
|
public class Forum {
|
|
|
|
private ObjectId id;
|
|
//发帖时间
|
|
private Long time;
|
|
//帖子标题
|
|
private String title;
|
|
//回复数
|
|
private Integer reply;
|
|
//帖子类型
|
|
private ForumType forumType;
|
|
//缩略内容
|
|
private String content;
|
|
|
|
private MyInfo myInfo;
|
|
/**
|
|
* 帖子类型
|
|
*/
|
|
public enum ForumType{
|
|
active,
|
|
topic,
|
|
complan
|
|
}
|
|
|
|
//发帖人
|
|
private String username;
|
|
|
|
public Long getTime() {
|
|
return time;
|
|
}
|
|
|
|
public void setTime(Long time) {
|
|
this.time = time;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username;
|
|
}
|
|
|
|
public ForumType getForumType() {
|
|
return forumType;
|
|
}
|
|
|
|
public void setForumType(ForumType forumType) {
|
|
this.forumType = forumType;
|
|
}
|
|
|
|
public Integer getReply() {
|
|
return reply;
|
|
}
|
|
|
|
public void setReply(Integer reply) {
|
|
this.reply = reply;
|
|
}
|
|
|
|
public MyInfo getMyInfo() {
|
|
return myInfo;
|
|
}
|
|
|
|
public void setMyInfo(MyInfo myInfo) {
|
|
this.myInfo = myInfo;
|
|
}
|
|
|
|
public String getContent() {
|
|
return content;
|
|
}
|
|
|
|
public void setContent(String content) {
|
|
this.content = content;
|
|
}
|
|
|
|
public ObjectId getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(ObjectId id) {
|
|
this.id = id;
|
|
}
|
|
}
|
|
|