Initial commit for open-source version

This commit is contained in:
jiangrui
2024-12-17 11:30:59 +08:00
commit 42c07ed34c
57 changed files with 10559 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
export interface Resource {
id: string;
title: string;
channel: string;
channelId?: string;
cloudLinks: string[];
pubDate: string;
cloudType: string;
messageId?: string;
}
export interface ShareInfo {
fileId: string;
fileName: string;
fileSize: number;
fileIdToken?: string;
}
export interface ShareInfoResponse {
data: {
list: ShareInfo[];
pwdId?: string;
stoken?: string;
shareCode?: string;
receiveCode?: string;
};
}
export interface Folder {
cid: string;
name: string;
path?: Folder[];
}
export interface SaveFileParams {
shareCode: string;
receiveCode: string;
fileId: string;
folderId: string;
}
export interface ApiResponse<T = any> {
success: boolean;
data?: T;
error?: string;
}
export interface Save115FileParams {
shareCode: string;
receiveCode: string;
fileId: string;
folderId: string;
}
export interface SaveQuarkFileParams {
fid_list: string[];
fid_token_list: string[];
to_pdir_fid: string;
pwd_id: string;
stoken: string;
pdir_fid: string;
scene: string;
}