feat(recycle-bin): 实现回收站功能
- 新增回收站管理相关接口和页面 - 实现笔记和分组的软删除、恢复和永久删除功能 - 添加回收站数据展示和操作界面 - 设计回收站功能的数据库表结构和API接口
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package com.test.bijihoudaun.service;
|
||||
|
||||
import com.test.bijihoudaun.entity.TrashItemVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TrashService {
|
||||
|
||||
/**
|
||||
* 获取回收站中的所有项目
|
||||
* @return 回收站项目列表
|
||||
*/
|
||||
List<TrashItemVo> getTrashItems();
|
||||
|
||||
/**
|
||||
* 恢复指定的回收站项目
|
||||
* @param id 项目ID
|
||||
* @param type 项目类型 ("note" 或 "group")
|
||||
*/
|
||||
void restoreItem(String id, String type);
|
||||
|
||||
/**
|
||||
* 永久删除指定的回收站项目
|
||||
* @param id 项目ID
|
||||
* @param type 项目类型 ("note" 或 "group")
|
||||
*/
|
||||
void permanentlyDeleteItem(String id, String type);
|
||||
|
||||
/**
|
||||
* 清空回收站
|
||||
*/
|
||||
void cleanTrash();
|
||||
}
|
||||
Reference in New Issue
Block a user