mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Update bindings tests
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
+3
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user