feat(消息): 添加回复ID字段支持消息回复功能
在Message和MessageDto中添加replyid字段,支持消息回复功能 添加删除所有评论的API端点 重构消息控制器方法顺序 ``` ```msg feat(文章): 实现文章浏览量增加功能 添加incrementViewCount方法用于增加文章浏览量 在文章实体中添加likes字段记录点赞数 更新API文档说明新增字段 ``` ```msg chore: 移除数据初始化类 注释掉CategoryDataInit和MessageDataInit类 这些初始化功能将由其他方式实现
This commit is contained in:
@@ -8,22 +8,50 @@ import java.util.Date;
|
||||
public class Message {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
|
||||
@Column(name = "messageid")
|
||||
private Integer messageid;
|
||||
|
||||
@Column(name = "nickname")
|
||||
private String nickname;
|
||||
|
||||
@Column(name = "email")
|
||||
private String email;
|
||||
|
||||
@Column(columnDefinition = "text")
|
||||
@Column(name = "content", columnDefinition = "text")
|
||||
private String content;
|
||||
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
@Column(name = "created_at")
|
||||
private Date createdAt;
|
||||
|
||||
@Column(name = "parentid")
|
||||
private Integer parentid;
|
||||
|
||||
private Integer articleid;
|
||||
@Column(name = "replyid")
|
||||
private Integer replyid;
|
||||
|
||||
@Column(name = "articleid")
|
||||
private Integer articleid;
|
||||
|
||||
@Column(name = "likes")
|
||||
private Integer likes; // 点赞数
|
||||
|
||||
public Integer getLikes() {
|
||||
return likes;
|
||||
}
|
||||
|
||||
public void setLikes(Integer likes) {
|
||||
this.likes = likes;
|
||||
}
|
||||
|
||||
public Integer getReplyid() {
|
||||
return replyid;
|
||||
}
|
||||
|
||||
public void setReplyid(Integer replyid) {
|
||||
this.replyid = replyid;
|
||||
}
|
||||
|
||||
public Integer getMessageid() {
|
||||
return messageid;
|
||||
|
||||
Reference in New Issue
Block a user