generated from dave/wails-template
Add json tags to types
This commit is contained in:
8
app.go
8
app.go
@@ -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{}
|
||||
}
|
||||
Reference in New Issue
Block a user