feat(security): 重构安全配置并添加用户认证功能
refactor: 将ResponseMessage移动到config包并增强功能 feat: 添加用户管理相关功能及密码加密配置 fix: 修复HelpController中README文件路径问题 docs: 更新application.properties配置注释 style: 清理无用导入和日志文件
This commit is contained in:
@@ -39,9 +39,14 @@ public class Article {
|
||||
|
||||
@Column(name = "likes")
|
||||
private Integer likes; // 点赞数
|
||||
|
||||
@Column(name = "status")
|
||||
private Integer status; // 0-草稿,1-已发布,2-已删除
|
||||
|
||||
@Column(name = "markdownscontent")
|
||||
@NotBlank(message = "Markdown内容不能为空")
|
||||
private String markdownscontent;
|
||||
|
||||
// Getters and Setters
|
||||
|
||||
public Integer getLikes() {
|
||||
@@ -125,4 +130,12 @@ public class Article {
|
||||
public void setViewCount(Integer viewCount) {
|
||||
this.viewCount = viewCount;
|
||||
}
|
||||
|
||||
public String getMarkdownscontent() {
|
||||
return markdownscontent;
|
||||
}
|
||||
|
||||
public void setMarkdownscontent(String markdownscontent) {
|
||||
this.markdownscontent = markdownscontent;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user