feat(note): 增加私密笔记功能

- 在 MarkdownFile 表中添加 is_private 字段,用于标记笔记是否私密- 修改 MarkdownController 中的 getMarkdownContent 方法,增加对私密笔记的处理逻辑
- 更新 MarkdownFileService 接口和 MarkdownFileServiceImpl 实现类,支持根据认证状态获取笔记内容
- 优化未认证用户访问私密笔记时的处理,只显示标题不显示内容
This commit is contained in:
2025-08-06 14:49:05 +08:00
parent 26514f3fa7
commit 5f608b7573
5 changed files with 44 additions and 7 deletions

View File

@@ -45,4 +45,7 @@ public class MarkdownFile implements Serializable {
@Schema(description = "删除人ID", implementation = Long.class)
private Long deletedBy;
@Schema(description = "是否私密 0-公开 1-私密", implementation = Integer.class)
private Integer isPrivate;
}