Update bindings tests

This commit is contained in:
Lea Anthony
2024-01-07 20:11:34 +11:00
parent 6d8a004f4a
commit b6dc199993
74 changed files with 510 additions and 445 deletions
@@ -2,6 +2,7 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {Call} from '@wailsio/runtime';
/**
* @typedef {import('./models').Person} Person
* @typedef {import('./models').Title} Title
@@ -15,7 +16,7 @@
* @returns {Promise<string>}
**/
export async function Greet(name, title) {
return wails.CallByID(1411160069, ...Array.prototype.slice.call(arguments, 0));
return Call.ByID(1411160069, ...Array.prototype.slice.call(arguments, 0));
}
/**
@@ -25,5 +26,5 @@ export async function Greet(name, title) {
* @returns {Promise<Person>}
**/
export async function NewPerson(name) {
return wails.CallByID(1661412647, ...Array.prototype.slice.call(arguments, 0));
return Call.ByID(1661412647, ...Array.prototype.slice.call(arguments, 0));
}
@@ -1,16 +1,17 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {Call} from '@wailsio/runtime';
import {Person} from './models';
import {Title} from './models';
// Greet does XYZ
export async function Greet(name: string, title: Title) : Promise<string> {
return wails.CallByName("main.GreetService.Greet", name, title);
return Call.ByName("main.GreetService.Greet", name, title);
}
// NewPerson creates a new person
export async function NewPerson(name: string) : Promise<Person> {
return wails.CallByName("main.GreetService.NewPerson", name);
return Call.ByName("main.GreetService.NewPerson", name);
}
@@ -1,16 +1,17 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {Call} from '@wailsio/runtime';
import {Person} from './models';
import {Title} from './models';
// Greet does XYZ
export async function Greet(name: string, title: Title) : Promise<string> {
return wails.CallByID(1411160069, name, title);
return Call.ByID(1411160069, name, title);
}
// NewPerson creates a new person
export async function NewPerson(name: string) : Promise<Person> {
return wails.CallByID(1661412647, name);
return Call.ByID(1661412647, name);
}