131 lines
2.4 KiB
Java
131 lines
2.4 KiB
Java
package com.kaidi.oa.domain;
|
|
|
|
import jakarta.persistence.Column;
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.GeneratedValue;
|
|
import jakarta.persistence.GenerationType;
|
|
import jakarta.persistence.Id;
|
|
import jakarta.persistence.Table;
|
|
|
|
/** 享空间动态(文化建设 - 分享流)。tags 为逗号分隔。 */
|
|
@Entity
|
|
@Table(name = "feed")
|
|
public class Feed {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
private String author;
|
|
|
|
private String dept;
|
|
|
|
/** 动态 / 分享 / 图片 / 打卡 */
|
|
private String type;
|
|
|
|
@Column(columnDefinition = "TEXT")
|
|
private String content;
|
|
|
|
private String tags;
|
|
|
|
private int images;
|
|
|
|
private int likes;
|
|
|
|
private int comments;
|
|
|
|
/** 评论正文列表 [{author,content,createdAt}] 的 JSON。 */
|
|
@Column(columnDefinition = "TEXT")
|
|
private String commentsJson;
|
|
|
|
private String time;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getAuthor() {
|
|
return author;
|
|
}
|
|
|
|
public void setAuthor(String author) {
|
|
this.author = author;
|
|
}
|
|
|
|
public String getDept() {
|
|
return dept;
|
|
}
|
|
|
|
public void setDept(String dept) {
|
|
this.dept = dept;
|
|
}
|
|
|
|
public String getType() {
|
|
return type;
|
|
}
|
|
|
|
public void setType(String type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public String getContent() {
|
|
return content;
|
|
}
|
|
|
|
public void setContent(String content) {
|
|
this.content = content;
|
|
}
|
|
|
|
public String getTags() {
|
|
return tags;
|
|
}
|
|
|
|
public void setTags(String tags) {
|
|
this.tags = tags;
|
|
}
|
|
|
|
public int getImages() {
|
|
return images;
|
|
}
|
|
|
|
public void setImages(int images) {
|
|
this.images = images;
|
|
}
|
|
|
|
public int getLikes() {
|
|
return likes;
|
|
}
|
|
|
|
public void setLikes(int likes) {
|
|
this.likes = likes;
|
|
}
|
|
|
|
public int getComments() {
|
|
return comments;
|
|
}
|
|
|
|
public void setComments(int comments) {
|
|
this.comments = comments;
|
|
}
|
|
|
|
public String getCommentsJson() {
|
|
return commentsJson;
|
|
}
|
|
|
|
public void setCommentsJson(String commentsJson) {
|
|
this.commentsJson = commentsJson;
|
|
}
|
|
|
|
public String getTime() {
|
|
return time;
|
|
}
|
|
|
|
public void setTime(String time) {
|
|
this.time = time;
|
|
}
|
|
}
|