update
This commit is contained in:
23
frontend/wailsjs/go/models.ts
Normal file
23
frontend/wailsjs/go/models.ts
Normal 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"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user