Files
updata_hfb/frontend/wailsjs/go/models.ts
T
2026-07-23 14:04:52 +08:00

44 lines
1.1 KiB
TypeScript
Executable File

export namespace main {
export class DefaultSettings {
server: string;
uploader: string;
secret: string;
timeout: string;
static createFrom(source: any = {}) {
return new DefaultSettings(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.server = source["server"];
this.uploader = source["uploader"];
this.secret = source["secret"];
this.timeout = source["timeout"];
}
}
export class UploadForm {
server: string;
uploader: string;
secret: string;
timeout: string;
data: string;
static createFrom(source: any = {}) {
return new UploadForm(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.server = source["server"];
this.uploader = source["uploader"];
this.secret = source["secret"];
this.timeout = source["timeout"];
this.data = source["data"];
}
}
}