generated from dave/wails-template
Add json tags to types
This commit is contained in:
30
types.go
30
types.go
@@ -4,29 +4,29 @@ import "time"
|
||||
|
||||
type (
|
||||
Bill struct {
|
||||
Id int64
|
||||
Name string
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
Payment struct {
|
||||
Id int64
|
||||
BillId int64
|
||||
MonthFor time.Time
|
||||
PaymentDate time.Time
|
||||
Id int64 `json:"id"`
|
||||
BillId int64 `json:"billId"`
|
||||
MonthFor time.Time `json:"monthFor" time_format:"2006-01-02"`
|
||||
PaymentDate time.Time `json:"paymentDate" time_format:"2006-01-02T15:04:05"`
|
||||
}
|
||||
|
||||
WailsBills struct {
|
||||
Data []Bill
|
||||
Success bool
|
||||
Error string
|
||||
Data []Bill `json:"data"`
|
||||
Success bool `json:"success"`
|
||||
Error string `json:"error"`
|
||||
}
|
||||
WailsPayments struct {
|
||||
Data []Payment
|
||||
Success bool
|
||||
Error string
|
||||
Data []Payment `json:"data"`
|
||||
Success bool `json:"success"`
|
||||
Error string `json:"error"`
|
||||
}
|
||||
WailsPayment struct {
|
||||
Data Payment
|
||||
Success bool
|
||||
Error string
|
||||
Data Payment `json:"data"`
|
||||
Success bool `json:"success"`
|
||||
Error string `json:"error"`
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user