feat(folders): 添加公开文件夹和收藏功能

- 新增文件夹可见性控制(公开/私有)
- 添加公开文件夹浏览和搜索
- 实现文件夹收藏功能
- 新增 FolderFavorite 数据模型
- 更新 Prisma 至 7.4.2
- 添加相关 i18n 翻译
This commit is contained in:
2026-03-08 14:20:12 +08:00
parent b407783d61
commit b0fa1a4201
13 changed files with 1019 additions and 263 deletions

View File

@@ -2,12 +2,14 @@ export type TSharedFolder = {
id: number,
name: string,
userId: string;
visibility: "PRIVATE" | "PUBLIC";
};
export type TSharedFolderWithTotalPairs = {
id: number,
name: string,
userId: string,
visibility: "PRIVATE" | "PUBLIC";
total: number;
};
@@ -20,4 +22,16 @@ export type TSharedPair = {
ipa2: string | null;
id: number;
folderId: number;
};
export type TPublicFolder = {
id: number;
name: string;
visibility: "PRIVATE" | "PUBLIC";
createdAt: Date;
userId: string;
userName: string | null;
userUsername: string | null;
totalPairs: number;
favoriteCount: number;
};