blob: 6f56a68c3296b78369a2eadad97db11c7dbd87a7 [file] [log] [blame]
刘嘉昕f28ea232025-04-15 16:55:43 +08001package com.pt5.pthouduan.entity;
2
3import com.baomidou.mybatisplus.annotation.TableId;
4import com.baomidou.mybatisplus.annotation.TableName;
5
6import java.io.Serializable;
7import java.time.LocalDateTime;
8
9/**
10 * <p>
11 *
12 * </p>
13 *
ym92355ec83a2025-06-03 17:15:13 +080014 * @author ym
刘嘉昕f28ea232025-04-15 16:55:43 +080015 * @since 2025-04-14
16 */
17@TableName("comment")
18public class Comment implements Serializable {
19
20 private static final long serialVersionUID = 1L;
21
22 @TableId("commentid")
ym92355ec83a2025-06-03 17:15:13 +080023 private Integer commentid;
24
25 private Integer likes;
26
27 private Long userid;
刘嘉昕f28ea232025-04-15 16:55:43 +080028
29 private Integer postid;
30
31 private String postCommentcontent;
32
33 private LocalDateTime commenttime;
34
ym92355ec83a2025-06-03 17:15:13 +080035 public Integer getCommentid() {
刘嘉昕f28ea232025-04-15 16:55:43 +080036 return commentid;
37 }
38
ym92355ec83a2025-06-03 17:15:13 +080039 public void setCommentid(Integer commentid) {
刘嘉昕f28ea232025-04-15 16:55:43 +080040 this.commentid = commentid;
41 }
42
ym92355ec83a2025-06-03 17:15:13 +080043
44 public Long getUserid() {
45 return userid;
46 }
47
48 public void setUserid(Long userid) {
49 this.userid = userid;
50 }
51
刘嘉昕f28ea232025-04-15 16:55:43 +080052 public Integer getPostid() {
53 return postid;
54 }
55
56 public void setPostid(Integer postid) {
57 this.postid = postid;
58 }
59
ym92355ec83a2025-06-03 17:15:13 +080060 public Integer getLikes() {
61 return likes;
62 }
63
64 public void setLikes(Integer likes) {
65 this.likes = likes;
66 }
67
刘嘉昕f28ea232025-04-15 16:55:43 +080068 public String getPostCommentcontent() {
69 return postCommentcontent;
70 }
71
72 public void setPostCommentcontent(String postCommentcontent) {
73 this.postCommentcontent = postCommentcontent;
74 }
75
76 public LocalDateTime getCommenttime() {
77 return commenttime;
78 }
79
80 public void setCommenttime(LocalDateTime commenttime) {
81 this.commenttime = commenttime;
82 }
83
84 @Override
85 public String toString() {
86 return "Comment{" +
87 "commentid = " + commentid +
ym92355ec83a2025-06-03 17:15:13 +080088 ", userid = " + userid +
刘嘉昕f28ea232025-04-15 16:55:43 +080089 ", postid = " + postid +
90 ", postCommentcontent = " + postCommentcontent +
91 ", commenttime = " + commenttime +
92 "}";
93 }
94}