| 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("post") |
| public class Post implements Serializable { |
| |
| private static final long serialVersionUID = 1L; |
| |
| @TableId("postid") |
| private Integer postid; |
| |
| private Integer likes; |
| |
| private Long userid; |
| |
| private String photo; |
| |
| private String rannge; |
| |
| private LocalDateTime updated_time; |
| |
| private Boolean is_pinned; |
| |
| private String post_title; |
| |
| private LocalDateTime postCreatedTime; |
| |
| private String post_content; |
| |
| private String tags; |
| |
| 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 Long getUserid() { |
| return userid; |
| } |
| |
| public void setUserid(Long userid) { |
| this.userid = userid; |
| } |
| |
| public LocalDateTime getUpdatedTime() { |
| return updated_time; |
| } |
| |
| public void setUpdatedTime(LocalDateTime updated_time) { |
| this.updated_time = updated_time; |
| } |
| |
| public String getTags() {//获取标签 |
| return tags; |
| } |
| |
| public void setTags(String tags) { |
| this.tags = tags; |
| } |
| |
| |
| public String getPhoto() {//获取标签 |
| return photo; |
| } |
| |
| public void setPhoto(String photo) { |
| this.photo = photo; |
| } |
| |
| public String getRannge() { |
| return rannge; |
| } |
| |
| public void setRannge(String rannge) { |
| this.rannge = rannge; |
| } |
| |
| public Boolean getIsSticky() { |
| return is_pinned; |
| } |
| |
| public void setIsSticky(Boolean is_pinned) { |
| this.is_pinned = is_pinned; |
| } |
| |
| public String getPostTitle() { |
| return post_title; |
| } |
| |
| public void setPostTitle(String post_title) { |
| this.post_title = post_title; |
| } |
| |
| public LocalDateTime getPostCreatedTime() { |
| return postCreatedTime; |
| } |
| |
| public void setPostCreatedTime(LocalDateTime postCreatedTime) { |
| this.postCreatedTime = postCreatedTime; |
| } |
| |
| public String getPostContent() { |
| return post_content; |
| } |
| |
| public void setPostContent(String post_content) { |
| this.post_content = post_content; |
| } |
| |
| @Override |
| public String toString() { |
| return "Post{" + |
| "postid=" + postid + |
| ", userid=" + userid + |
| ", photo='" + photo + '\'' + |
| ", updatedTime=" + updated_time + |
| ", likes=" + likes + |
| ", is_pinned=" + is_pinned + |
| ", post_title='" + post_title + '\'' + |
| ", post_content='" + post_content + '\'' + |
| ", postCreatedTime=" + postCreatedTime + |
| ", tags='" + tags + '\'' + |
| ", rannge='" + rannge + '\'' + |
| '}'; |
| } |
| } |