Files
updata_hfb/frontend/wailsjs/go/models.ts
T
2026-07-25 14:59:56 +08:00

48 lines
1.2 KiB
TypeScript
Executable File

export namespace main {
export class DefaultSettings {
server: string;
uploader: string;
secret: string;
timeout: string;
sourceChannel: 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"];
this.sourceChannel = source["sourceChannel"];
}
}
export class UploadForm {
server: string;
uploader: string;
secret: string;
timeout: string;
sourceChannel: 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.sourceChannel = source["sourceChannel"];
this.data = source["data"];
}
}
}