改成wails
This commit is contained in:
+11
@@ -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>;
|
||||
Executable
+19
@@ -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);
|
||||
}
|
||||
Executable
+43
@@ -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"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user