2022-08-19 16:02:58 +08:00
|
|
|
import { CommonModel } from '.';
|
|
|
|
export namespace File {
|
|
|
|
export interface File extends CommonModel {
|
2022-08-24 11:10:50 +08:00
|
|
|
path: string;
|
2022-08-19 16:02:58 +08:00
|
|
|
name: string;
|
|
|
|
user: string;
|
|
|
|
group: string;
|
2022-08-24 11:10:50 +08:00
|
|
|
content: string;
|
|
|
|
size: number;
|
2022-08-19 16:02:58 +08:00
|
|
|
isDir: boolean;
|
2022-08-24 11:10:50 +08:00
|
|
|
isSymlink: boolean;
|
|
|
|
type: string;
|
|
|
|
updateTime: string;
|
|
|
|
modTime: string;
|
|
|
|
mode: number;
|
2022-08-30 17:59:59 +08:00
|
|
|
mimeType: string;
|
2022-08-24 11:10:50 +08:00
|
|
|
items: File[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ReqFile {
|
2022-08-19 16:02:58 +08:00
|
|
|
path: string;
|
2022-08-24 11:10:50 +08:00
|
|
|
search?: string;
|
|
|
|
expand: boolean;
|
2022-08-19 16:02:58 +08:00
|
|
|
}
|
2022-08-24 17:34:21 +08:00
|
|
|
|
|
|
|
export interface FileTree {
|
2022-08-24 17:58:58 +08:00
|
|
|
id: string;
|
2022-08-24 17:34:21 +08:00
|
|
|
name: string;
|
2022-08-26 17:35:14 +08:00
|
|
|
isDir: boolean;
|
2022-08-24 17:34:21 +08:00
|
|
|
path: string;
|
|
|
|
children?: FileTree[];
|
|
|
|
}
|
2022-08-25 17:54:52 +08:00
|
|
|
|
|
|
|
export interface FileCreate {
|
|
|
|
path: string;
|
2022-08-26 17:35:14 +08:00
|
|
|
isDir: boolean;
|
2022-08-25 17:54:52 +08:00
|
|
|
mode: number;
|
|
|
|
}
|
2022-08-25 18:48:03 +08:00
|
|
|
|
|
|
|
export interface FileDelete {
|
|
|
|
path: string;
|
2022-08-26 17:35:14 +08:00
|
|
|
isDir: boolean;
|
2022-08-25 18:48:03 +08:00
|
|
|
}
|
2022-08-30 17:59:59 +08:00
|
|
|
|
|
|
|
export interface FileCompress {
|
|
|
|
files: string[];
|
|
|
|
type: string;
|
|
|
|
dst: string;
|
|
|
|
name: string;
|
|
|
|
replace: boolean;
|
|
|
|
}
|
2022-08-19 16:02:58 +08:00
|
|
|
}
|