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

44 lines
885 B
Go

import { CommonModel } from '.';
export namespace File {
export interface File extends CommonModel {
path: string;
name: string;
user: string;
group: string;
content: string;
size: number;
isDir: boolean;
isSymlink: boolean;
type: string;
updateTime: string;
modTime: string;
mode: number;
items: File[];
}
export interface ReqFile {
path: string;
search?: string;
expand: boolean;
}
export interface FileTree {
id: string;
name: string;
isDir: boolean;
path: string;
children?: FileTree[];
}
export interface FileCreate {
path: string;
isDir: boolean;
mode: number;
}
export interface FileDelete {
path: string;
isDir: boolean;
}
}