chore: initial commit of HouseholdBudgetBook (backend, frontend, desktop)
This commit is contained in:
commit
4a5db3f1f9
167 files changed
+21732
No files matched your search
@@ -0,0 +1,29 @@
|
||||
package model
|
||||
|
||||
type LifecycleEvent struct {
|
||||
ID int64 `json:"id"`
|
||||
Year int `json:"year"`
|
||||
MemberID *int64 `json:"member_id"`
|
||||
MemberName string `json:"member_name"`
|
||||
Event string `json:"event"`
|
||||
EstimatedCost int64 `json:"estimated_cost"`
|
||||
Note string `json:"note"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
type CreateLifecycleEventRequest struct {
|
||||
Year int `json:"year"`
|
||||
MemberID *int64 `json:"member_id"`
|
||||
Event string `json:"event"`
|
||||
EstimatedCost int64 `json:"estimated_cost"`
|
||||
Note string `json:"note"`
|
||||
}
|
||||
|
||||
type UpdateLifecycleEventRequest struct {
|
||||
Year *int `json:"year,omitempty"`
|
||||
MemberID NullableInt64 `json:"member_id,omitempty"`
|
||||
Event *string `json:"event,omitempty"`
|
||||
EstimatedCost *int64 `json:"estimated_cost,omitempty"`
|
||||
Note *string `json:"note,omitempty"`
|
||||
}
|
||||
Reference in new issue
Block a user