blob: 843800d3c34aed72b4c841e49a856658b7af6828 [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 *
ym923f1d9f452025-05-27 18:29:44 +080014 * @author ym
刘嘉昕f28ea232025-04-15 16:55:43 +080015 * @since 2025-04-14
16 */
17@TableName("post")
18public class Post implements Serializable {
19
20 private static final long serialVersionUID = 1L;
21
22 @TableId("postid")
23 private Integer postid;
24
ym923f1d9f452025-05-27 18:29:44 +080025 private Integer likes;
26
刘嘉昕f28ea232025-04-15 16:55:43 +080027 private Long userid;
28
ym923f1d9f452025-05-27 18:29:44 +080029 private String photo;
刘嘉昕f28ea232025-04-15 16:55:43 +080030
ym923f1d9f452025-05-27 18:29:44 +080031 private String rannge;
刘嘉昕f28ea232025-04-15 16:55:43 +080032
ym923f1d9f452025-05-27 18:29:44 +080033 private LocalDateTime updated_time;
34
35 private Boolean is_pinned;
36
37 private String post_title;
刘嘉昕f28ea232025-04-15 16:55:43 +080038
39 private LocalDateTime postCreatedTime;
40
ym923f1d9f452025-05-27 18:29:44 +080041 private String post_content;
42
43 private String tags;
44
刘嘉昕f28ea232025-04-15 16:55:43 +080045 public Integer getPostid() {
46 return postid;
47 }
48
49 public void setPostid(Integer postid) {
50 this.postid = postid;
51 }
52
ym923f1d9f452025-05-27 18:29:44 +080053 public Integer getLikes() {
54 return likes;
55 }
56
57 public void setLikes(Integer likes) {
58 this.likes = likes;
59 }
60
刘嘉昕f28ea232025-04-15 16:55:43 +080061 public Long getUserid() {
62 return userid;
63 }
64
65 public void setUserid(Long userid) {
66 this.userid = userid;
67 }
68
69 public LocalDateTime getUpdatedTime() {
ym923f1d9f452025-05-27 18:29:44 +080070 return updated_time;
刘嘉昕f28ea232025-04-15 16:55:43 +080071 }
72
ym923f1d9f452025-05-27 18:29:44 +080073 public void setUpdatedTime(LocalDateTime updated_time) {
74 this.updated_time = updated_time;
75 }
76
77 public String getTags() {//获取标签
78 return tags;
79 }
80
81 public void setTags(String tags) {
82 this.tags = tags;
83 }
84
85
86 public String getPhoto() {//获取标签
87 return photo;
88 }
89
90 public void setPhoto(String photo) {
91 this.photo = photo;
92 }
93
94 public String getRannge() {
95 return rannge;
96 }
97
98 public void setRannge(String rannge) {
99 this.rannge = rannge;
刘嘉昕f28ea232025-04-15 16:55:43 +0800100 }
101
102 public Boolean getIsSticky() {
ym923f1d9f452025-05-27 18:29:44 +0800103 return is_pinned;
刘嘉昕f28ea232025-04-15 16:55:43 +0800104 }
105
ym923f1d9f452025-05-27 18:29:44 +0800106 public void setIsSticky(Boolean is_pinned) {
107 this.is_pinned = is_pinned;
刘嘉昕f28ea232025-04-15 16:55:43 +0800108 }
109
110 public String getPostTitle() {
ym923f1d9f452025-05-27 18:29:44 +0800111 return post_title;
刘嘉昕f28ea232025-04-15 16:55:43 +0800112 }
113
ym923f1d9f452025-05-27 18:29:44 +0800114 public void setPostTitle(String post_title) {
115 this.post_title = post_title;
刘嘉昕f28ea232025-04-15 16:55:43 +0800116 }
117
118 public LocalDateTime getPostCreatedTime() {
119 return postCreatedTime;
120 }
121
122 public void setPostCreatedTime(LocalDateTime postCreatedTime) {
123 this.postCreatedTime = postCreatedTime;
124 }
125
ym923f1d9f452025-05-27 18:29:44 +0800126 public String getPostContent() {
127 return post_content;
128 }
129
130 public void setPostContent(String post_content) {
131 this.post_content = post_content;
132 }
133
刘嘉昕f28ea232025-04-15 16:55:43 +0800134 @Override
135 public String toString() {
136 return "Post{" +
ym923f1d9f452025-05-27 18:29:44 +0800137 "postid=" + postid +
138 ", userid=" + userid +
139 ", photo='" + photo + '\'' +
140 ", updatedTime=" + updated_time +
141 ", likes=" + likes +
142 ", is_pinned=" + is_pinned +
143 ", post_title='" + post_title + '\'' +
144 ", post_content='" + post_content + '\'' +
145 ", postCreatedTime=" + postCreatedTime +
146 ", tags='" + tags + '\'' +
147 ", rannge='" + rannge + '\'' +
148 '}';
刘嘉昕f28ea232025-04-15 16:55:43 +0800149 }
150}