This commit is contained in:
josc146
2023-05-13 23:36:30 +08:00
parent 08e024a998
commit 80bfb09972
10 changed files with 170 additions and 32 deletions

View File

@@ -0,0 +1,23 @@
export namespace backend_golang {
export class FileInfo {
name: string;
size: number;
isDir: boolean;
modTime: string;
static createFrom(source: any = {}) {
return new FileInfo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.name = source["name"];
this.size = source["size"];
this.isDir = source["isDir"];
this.modTime = source["modTime"];
}
}
}