This commit is contained in:
2026-07-16 17:54:03 +08:00
parent 9ba28f2f7c
commit 4806ca6bc0
9 changed files with 454 additions and 93 deletions
+5
View File
@@ -1,8 +1,13 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {main} from '../models';
export function GetImage(arg1:string):Promise<main.ImageResult>;
export function Greet(arg1:string):Promise<string>;
export function Login():Promise<string>;
export function Register():Promise<string>;
export function UploadImage(arg1:Array<number>,arg2:string):Promise<main.ImageResult>;
+8
View File
@@ -2,6 +2,10 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function GetImage(arg1) {
return window['go']['main']['App']['GetImage'](arg1);
}
export function Greet(arg1) {
return window['go']['main']['App']['Greet'](arg1);
}
@@ -13,3 +17,7 @@ export function Login() {
export function Register() {
return window['go']['main']['App']['Register']();
}
export function UploadImage(arg1, arg2) {
return window['go']['main']['App']['UploadImage'](arg1, arg2);
}
+21
View File
@@ -0,0 +1,21 @@
export namespace main {
export class ImageResult {
code: number;
message: string;
data?: string;
static createFrom(source: any = {}) {
return new ImageResult(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.code = source["code"];
this.message = source["message"];
this.data = source["data"];
}
}
}