1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-21 09:19:16 +08:00

39 lines
798 B
Go
Raw Normal View History

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;
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 {
id: string;
2022-08-24 17:34:21 +08:00
name: string;
isDir: Boolean;
path: string;
children?: FileTree[];
}
2022-08-25 17:54:52 +08:00
export interface FileCreate {
path: string;
isDir: Boolean;
mode: number;
}
2022-08-19 16:02:58 +08:00
}