用户,社交接口
Change-Id: I10d13773cbe4bbcf3b69a2038cdf7aa9ba54b6df
diff --git a/src/main/java/com/example/myproject/entity/DynamicComment.java b/src/main/java/com/example/myproject/entity/DynamicComment.java
new file mode 100644
index 0000000..d5c84d3
--- /dev/null
+++ b/src/main/java/com/example/myproject/entity/DynamicComment.java
@@ -0,0 +1,89 @@
+package com.example.myproject.entity;
+
+import javax.persistence.*;
+import java.util.Date;
+
+@Entity
+@Table(name = "dynamic_comment")
+public class DynamicComment {
+
+ @Id
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
+ @Column(name = "comment_id")
+ private Long commentId;
+
+ @Column(name = "dynamic_id")
+ private Long dynamicId;
+
+ @Column(name = "user_id")
+ private Long userId;
+
+ @Column(name = "comment_content")
+ private String commentContent;
+
+ @Column(name = "comment_time")
+ private Date commentTime;
+
+ @Column(name = "is_anonymous")
+ private Boolean isAnonymous = false;
+
+ @Column(name = "parent_comment_id")
+ private Long parentCommentId;
+
+ // Getters and Setters
+ public Long getCommentId() {
+ return commentId;
+ }
+
+ public void setCommentId(Long commentId) {
+ this.commentId = commentId;
+ }
+
+ public Long getDynamicId() {
+ return dynamicId;
+ }
+
+ public void setDynamicId(Long dynamicId) {
+ this.dynamicId = dynamicId;
+ }
+
+ public Long getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Long userId) {
+ this.userId = userId;
+ }
+
+ public String getCommentContent() {
+ return commentContent;
+ }
+
+ public void setCommentContent(String commentContent) {
+ this.commentContent = commentContent;
+ }
+
+ public Date getCommentTime() {
+ return commentTime;
+ }
+
+ public void setCommentTime(Date commentTime) {
+ this.commentTime = commentTime;
+ }
+
+ public Boolean getIsAnonymous() {
+ return isAnonymous;
+ }
+
+ public void setIsAnonymous(Boolean isAnonymous) {
+ this.isAnonymous = isAnonymous;
+ }
+
+ public Long getParentCommentId() {
+ return parentCommentId;
+ }
+
+ public void setParentCommentId(Long parentCommentId) {
+ this.parentCommentId = parentCommentId;
+ }
+}