feat(biji): 添加最近更新笔记功能

- 在前端添加 getRecentFiles API 接口
- 在后端添加 getRecentFiles 接口和相关服务方法
- 实现最近更新笔记的获取和展示
- 优化首页初始化逻辑,加载最近更新笔记
This commit is contained in:
2025-07-31 16:47:44 +08:00
parent 8bd811319e
commit f72d75e349
7 changed files with 64 additions and 5 deletions

View File

@@ -57,4 +57,11 @@ public interface MarkdownFileService extends IService<MarkdownFile> {
* @return 更新后的文件对象
*/
MarkdownFile updateMarkdownTitle(Long id, String title);
/**
* 获取最近更新的笔记
* @param limit 数量
* @return 文件列表
*/
List<MarkdownFile> getRecentFiles(int limit);
}