generated from dave/wails-template
Update model
This commit is contained in:
10
frontend/wailsjs/go/main/App.d.ts
vendored
Normal file
10
frontend/wailsjs/go/main/App.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {main} from '../models';
|
||||
import {time} from '../models';
|
||||
|
||||
export function GetBills():Promise<main.WailsBills>;
|
||||
|
||||
export function GetPaymentsForMonth(arg1:time.Time):Promise<main.WailsPayments>;
|
||||
|
||||
export function SetPaid(arg1:number,arg2:time.Time):Promise<main.WailsPayment>;
|
15
frontend/wailsjs/go/main/App.js
Normal file
15
frontend/wailsjs/go/main/App.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export function GetBills() {
|
||||
return window['go']['main']['App']['GetBills']();
|
||||
}
|
||||
|
||||
export function GetPaymentsForMonth(arg1) {
|
||||
return window['go']['main']['App']['GetPaymentsForMonth'](arg1);
|
||||
}
|
||||
|
||||
export function SetPaid(arg1, arg2) {
|
||||
return window['go']['main']['App']['SetPaid'](arg1, arg2);
|
||||
}
|
58
frontend/wailsjs/go/models.ts
Normal file
58
frontend/wailsjs/go/models.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
export namespace main {
|
||||
|
||||
export class WailsBills {
|
||||
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new WailsBills(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
|
||||
}
|
||||
}
|
||||
export class WailsPayment {
|
||||
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new WailsPayment(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
|
||||
}
|
||||
}
|
||||
export class WailsPayments {
|
||||
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new WailsPayments(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export namespace time {
|
||||
|
||||
export class Time {
|
||||
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new Time(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user