刘嘉昕 | 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 | * |
| 14 | * @author ljx |
| 15 | * @since 2025-04-14 |
| 16 | */ |
| 17 | @TableName("post") |
| 18 | public class Post implements Serializable { |
| 19 | |
| 20 | private static final long serialVersionUID = 1L; |
| 21 | |
| 22 | @TableId("postid") |
| 23 | private Integer postid; |
| 24 | |
| 25 | private Long userid; |
| 26 | |
| 27 | private LocalDateTime updatedTime; |
| 28 | |
| 29 | private Boolean isSticky; |
| 30 | |
| 31 | private String postTitle; |
| 32 | |
| 33 | private LocalDateTime postCreatedTime; |
| 34 | |
| 35 | public Integer getPostid() { |
| 36 | return postid; |
| 37 | } |
| 38 | |
| 39 | public void setPostid(Integer postid) { |
| 40 | this.postid = postid; |
| 41 | } |
| 42 | |
| 43 | public Long getUserid() { |
| 44 | return userid; |
| 45 | } |
| 46 | |
| 47 | public void setUserid(Long userid) { |
| 48 | this.userid = userid; |
| 49 | } |
| 50 | |
| 51 | public LocalDateTime getUpdatedTime() { |
| 52 | return updatedTime; |
| 53 | } |
| 54 | |
| 55 | public void setUpdatedTime(LocalDateTime updatedTime) { |
| 56 | this.updatedTime = updatedTime; |
| 57 | } |
| 58 | |
| 59 | public Boolean getIsSticky() { |
| 60 | return isSticky; |
| 61 | } |
| 62 | |
| 63 | public void setIsSticky(Boolean isSticky) { |
| 64 | this.isSticky = isSticky; |
| 65 | } |
| 66 | |
| 67 | public String getPostTitle() { |
| 68 | return postTitle; |
| 69 | } |
| 70 | |
| 71 | public void setPostTitle(String postTitle) { |
| 72 | this.postTitle = postTitle; |
| 73 | } |
| 74 | |
| 75 | public LocalDateTime getPostCreatedTime() { |
| 76 | return postCreatedTime; |
| 77 | } |
| 78 | |
| 79 | public void setPostCreatedTime(LocalDateTime postCreatedTime) { |
| 80 | this.postCreatedTime = postCreatedTime; |
| 81 | } |
| 82 | |
| 83 | @Override |
| 84 | public String toString() { |
| 85 | return "Post{" + |
| 86 | "postid = " + postid + |
| 87 | ", userid = " + userid + |
| 88 | ", updatedTime = " + updatedTime + |
| 89 | ", isSticky = " + isSticky + |
| 90 | ", postTitle = " + postTitle + |
| 91 | ", postCreatedTime = " + postCreatedTime + |
| 92 | "}"; |
| 93 | } |
| 94 | } |