chore: initial commit of HouseholdBudgetBook (backend, frontend, desktop)

This commit is contained in:
mapleferry committed 2026-11-29 21:29:06 +08:00
commit 4a5db3f1f9
167 files changed
+21732

No files matched your search

+29
View File
@@ -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"`
}