feat: finished basic functio

This commit is contained in:
2024-11-26 19:40:57 +08:00
parent 8f9dd089bc
commit b2e3930c10
15 changed files with 561 additions and 29 deletions

View File

@@ -1,4 +1,9 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {main} from '../models';
export function Greet(arg1:string):Promise<string>;
export function ProcessFiles(arg1:Array<main.NcmFile>,arg2:string):Promise<void>;
export function SelectFiles():Promise<Array<string>>;
export function SelectFolder():Promise<string>;

View File

@@ -2,6 +2,14 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function Greet(arg1) {
return window['go']['main']['App']['Greet'](arg1);
export function ProcessFiles(arg1, arg2) {
return window['go']['main']['App']['ProcessFiles'](arg1, arg2);
}
export function SelectFiles() {
return window['go']['main']['App']['SelectFiles']();
}
export function SelectFolder() {
return window['go']['main']['App']['SelectFolder']();
}

19
frontend/wailsjs/go/models.ts Executable file
View File

@@ -0,0 +1,19 @@
export namespace main {
export class NcmFile {
Name: string;
Status: string;
static createFrom(source: any = {}) {
return new NcmFile(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.Name = source["Name"];
this.Status = source["Status"];
}
}
}