mirror of
https://github.com/jiangrui1994/CloudSaver.git
synced 2026-01-12 16:18:45 +08:00
Initial commit for open-source version
This commit is contained in:
63
frontend/src/types/index.ts
Normal file
63
frontend/src/types/index.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user