feat(biji): 添加最近更新笔记功能
- 在前端添加 getRecentFiles API 接口 - 在后端添加 getRecentFiles 接口和相关服务方法 - 实现最近更新笔记的获取和展示 - 优化首页初始化逻辑,加载最近更新笔记
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user