- 新增文件夹可见性控制(公开/私有) - 添加公开文件夹浏览和搜索 - 实现文件夹收藏功能 - 新增 FolderFavorite 数据模型 - 更新 Prisma 至 7.4.2 - 添加相关 i18n 翻译
37 lines
747 B
TypeScript
37 lines
747 B
TypeScript
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;
|
|
};
|
|
|
|
export type TSharedPair = {
|
|
text1: string;
|
|
text2: string;
|
|
language1: string;
|
|
language2: string;
|
|
ipa1: string | null;
|
|
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;
|
|
}; |