Files
bill-manager/types.go
2024-08-19 10:51:31 +02:00

33 lines
766 B
Go

package main
import "time"
type (
Bill struct {
Id int64 `json:"id"`
Name string `json:"name"`
}
Payment struct {
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 `json:"data"`
Success bool `json:"success"`
Error string `json:"error"`
}
WailsPayments struct {
Data []Payment `json:"data"`
Success bool `json:"success"`
Error string `json:"error"`
}
WailsPayment struct {
Data Payment `json:"data"`
Success bool `json:"success"`
Error string `json:"error"`
}
)