Add json tags to types

This commit is contained in:
2024-08-19 10:51:31 +02:00
parent de7c2cc82c
commit c17e25c358
5 changed files with 157 additions and 21 deletions

8
app.go
View File

@@ -56,4 +56,12 @@ func (a *App) SetPaid(billid int64, month time.Time) WailsPayment {
res.Success = true
res.Data = payment
return res
}
// These exist only so that wails generates models for Bill and Payment
func (a *App) EmptyBill() Bill {
return Bill{}
}
func (a *App) EmptyPayment() Payment {
return Payment{}
}