添加Comment相关文件
Change-Id: I823c09a1b576af5b176538f45b30e81cc7789550
diff --git a/src/main/java/com/pt5/pthouduan/entity/Comment.java b/src/main/java/com/pt5/pthouduan/entity/Comment.java
index 6b96288..6f56a68 100644
--- a/src/main/java/com/pt5/pthouduan/entity/Comment.java
+++ b/src/main/java/com/pt5/pthouduan/entity/Comment.java
@@ -11,7 +11,7 @@
*
* </p>
*
- * @author ljx
+ * @author ym
* @since 2025-04-14
*/
@TableName("comment")
@@ -20,7 +20,11 @@
private static final long serialVersionUID = 1L;
@TableId("commentid")
- private String commentid;
+ private Integer commentid;
+
+ private Integer likes;
+
+ private Long userid;
private Integer postid;
@@ -28,14 +32,23 @@
private LocalDateTime commenttime;
- public String getCommentid() {
+ public Integer getCommentid() {
return commentid;
}
- public void setCommentid(String commentid) {
+ public void setCommentid(Integer commentid) {
this.commentid = commentid;
}
+
+ public Long getUserid() {
+ return userid;
+ }
+
+ public void setUserid(Long userid) {
+ this.userid = userid;
+ }
+
public Integer getPostid() {
return postid;
}
@@ -44,6 +57,14 @@
this.postid = postid;
}
+ public Integer getLikes() {
+ return likes;
+ }
+
+ public void setLikes(Integer likes) {
+ this.likes = likes;
+ }
+
public String getPostCommentcontent() {
return postCommentcontent;
}
@@ -64,6 +85,7 @@
public String toString() {
return "Comment{" +
"commentid = " + commentid +
+ ", userid = " + userid +
", postid = " + postid +
", postCommentcontent = " + postCommentcontent +
", commenttime = " + commenttime +