| package com.pt5.pthouduan.entity; |
| |
| import com.baomidou.mybatisplus.annotation.TableId; |
| import com.baomidou.mybatisplus.annotation.TableName; |
| |
| import java.io.Serializable; |
| import java.time.LocalDateTime; |
| |
| /** |
| * <p> |
| * |
| * </p> |
| * |
| * @author ym |
| * @since 2025-04-14 |
| */ |
| @TableName("comment") |
| public class Comment implements Serializable { |
| |
| private static final long serialVersionUID = 1L; |
| |
| @TableId("commentid") |
| private Integer commentid; |
| |
| private Integer likes; |
| |
| private Long userid; |
| |
| private Integer postid; |
| |
| private String postCommentcontent; |
| |
| private LocalDateTime commenttime; |
| |
| public Integer getCommentid() { |
| return 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; |
| } |
| |
| public void setPostid(Integer postid) { |
| this.postid = postid; |
| } |
| |
| public Integer getLikes() { |
| return likes; |
| } |
| |
| public void setLikes(Integer likes) { |
| this.likes = likes; |
| } |
| |
| public String getPostCommentcontent() { |
| return postCommentcontent; |
| } |
| |
| public void setPostCommentcontent(String postCommentcontent) { |
| this.postCommentcontent = postCommentcontent; |
| } |
| |
| public LocalDateTime getCommenttime() { |
| return commenttime; |
| } |
| |
| public void setCommenttime(LocalDateTime commenttime) { |
| this.commenttime = commenttime; |
| } |
| |
| @Override |
| public String toString() { |
| return "Comment{" + |
| "commentid = " + commentid + |
| ", userid = " + userid + |
| ", postid = " + postid + |
| ", postCommentcontent = " + postCommentcontent + |
| ", commenttime = " + commenttime + |
| "}"; |
| } |
| } |