Update model

This commit is contained in:
2024-08-19 10:25:40 +02:00
parent 5e94f44e27
commit de7c2cc82c
6 changed files with 90 additions and 1 deletions

10
frontend/wailsjs/go/main/App.d.ts vendored Normal file
View 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>;

View 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);
}

View 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);
}
}
}