刘嘉昕 | f28ea23 | 2025-04-15 16:55:43 +0800 | [diff] [blame] | 1 | package com.pt5.pthouduan.entity; |
| 2 | |
| 3 | import com.baomidou.mybatisplus.annotation.TableId; |
| 4 | import com.baomidou.mybatisplus.annotation.TableName; |
| 5 | |
| 6 | import java.io.Serializable; |
| 7 | import java.time.LocalDateTime; |
| 8 | |
| 9 | /** |
| 10 | * <p> |
| 11 | * |
| 12 | * </p> |
| 13 | * |
ym923 | 55ec83a | 2025-06-03 17:15:13 +0800 | [diff] [blame] | 14 | * @author ym |
刘嘉昕 | f28ea23 | 2025-04-15 16:55:43 +0800 | [diff] [blame] | 15 | * @since 2025-04-14 |
| 16 | */ |
| 17 | @TableName("comment") |
| 18 | public class Comment implements Serializable { |
| 19 | |
| 20 | private static final long serialVersionUID = 1L; |
| 21 | |
| 22 | @TableId("commentid") |
ym923 | 55ec83a | 2025-06-03 17:15:13 +0800 | [diff] [blame] | 23 | private Integer commentid; |
| 24 | |
| 25 | private Integer likes; |
| 26 | |
| 27 | private Long userid; |
刘嘉昕 | f28ea23 | 2025-04-15 16:55:43 +0800 | [diff] [blame] | 28 | |
| 29 | private Integer postid; |
| 30 | |
| 31 | private String postCommentcontent; |
| 32 | |
| 33 | private LocalDateTime commenttime; |
| 34 | |
ym923 | 55ec83a | 2025-06-03 17:15:13 +0800 | [diff] [blame] | 35 | public Integer getCommentid() { |
刘嘉昕 | f28ea23 | 2025-04-15 16:55:43 +0800 | [diff] [blame] | 36 | return commentid; |
| 37 | } |
| 38 | |
ym923 | 55ec83a | 2025-06-03 17:15:13 +0800 | [diff] [blame] | 39 | public void setCommentid(Integer commentid) { |
刘嘉昕 | f28ea23 | 2025-04-15 16:55:43 +0800 | [diff] [blame] | 40 | this.commentid = commentid; |
| 41 | } |
| 42 | |
ym923 | 55ec83a | 2025-06-03 17:15:13 +0800 | [diff] [blame] | 43 | |
| 44 | public Long getUserid() { |
| 45 | return userid; |
| 46 | } |
| 47 | |
| 48 | public void setUserid(Long userid) { |
| 49 | this.userid = userid; |
| 50 | } |
| 51 | |
刘嘉昕 | f28ea23 | 2025-04-15 16:55:43 +0800 | [diff] [blame] | 52 | public Integer getPostid() { |
| 53 | return postid; |
| 54 | } |
| 55 | |
| 56 | public void setPostid(Integer postid) { |
| 57 | this.postid = postid; |
| 58 | } |
| 59 | |
ym923 | 55ec83a | 2025-06-03 17:15:13 +0800 | [diff] [blame] | 60 | public Integer getLikes() { |
| 61 | return likes; |
| 62 | } |
| 63 | |
| 64 | public void setLikes(Integer likes) { |
| 65 | this.likes = likes; |
| 66 | } |
| 67 | |
刘嘉昕 | f28ea23 | 2025-04-15 16:55:43 +0800 | [diff] [blame] | 68 | 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 + |
ym923 | 55ec83a | 2025-06-03 17:15:13 +0800 | [diff] [blame] | 88 | ", userid = " + userid + |
刘嘉昕 | f28ea23 | 2025-04-15 16:55:43 +0800 | [diff] [blame] | 89 | ", postid = " + postid + |
| 90 | ", postCommentcontent = " + postCommentcontent + |
| 91 | ", commenttime = " + commenttime + |
| 92 | "}"; |
| 93 | } |
| 94 | } |