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 Category struct {
ID int64 `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
ParentID *int64 `json:"parent_id"`
SortOrder int `json:"sort_order"`
Keywords string `json:"keywords"`
IsActive bool `json:"is_active"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
type CreateCategoryRequest struct {
Name string `json:"name"`
Type string `json:"type"`
ParentID *int64 `json:"parent_id,omitempty"`
SortOrder int `json:"sort_order"`
Keywords string `json:"keywords"`
}
type UpdateCategoryRequest struct {
Name *string `json:"name,omitempty"`
ParentID NullableInt64 `json:"parent_id,omitempty"`
SortOrder *int `json:"sort_order,omitempty"`
Keywords *string `json:"keywords,omitempty"`
IsActive *bool `json:"is_active,omitempty"`
}