改成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
+11
View File
@@ -0,0 +1,11 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {main} from '../models';
export function DefaultSettings():Promise<main.DefaultSettings>;
export function Preview(arg1:main.UploadForm):Promise<string>;
export function SampleText():Promise<string>;
export function Upload(arg1:main.UploadForm):Promise<string>;
+19
View File
@@ -0,0 +1,19 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function DefaultSettings() {
return window['go']['main']['App']['DefaultSettings']();
}
export function Preview(arg1) {
return window['go']['main']['App']['Preview'](arg1);
}
export function SampleText() {
return window['go']['main']['App']['SampleText']();
}
export function Upload(arg1) {
return window['go']['main']['App']['Upload'](arg1);
}
+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"];
}
}
}