改成wails

This commit is contained in:
yml2213
2026-07-23 14:04:52 +08:00
parent d0efcedcc5
commit a9ecad38f7
24 changed files with 2220 additions and 496 deletions
+43
View File
@@ -0,0 +1,43 @@
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"];
}
}
}