added backend and 2 endpoints fetch

This commit is contained in:
wt committed 2025-07-30 00:01:45 +07:00
1 parent 7c6db3dfbd
commit ca99cfcf6d
56 files changed
+344 -29

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
package model
type Category struct {
ID string `json:"id"`
Icon string `json:"icon"`
Title string `json:"title"`
Subcategories []Subcategory `json:"subcategories"`
}
+13
View File
@@ -0,0 +1,13 @@
package model
type Operation struct {
ID string `json:"id"`
Title string `json:"title"`
Amount float64 `json:"amount"`
Category string `json:"category"`
SubCategory Subcategory `json:"subcategory,omitzero"`
Note string `json:"note,omitempty"`
Icon string `json:"icon"`
Type string `json:"type"`
Date string `json:"date"`
}
+6
View File
@@ -0,0 +1,6 @@
package model
type Subcategory struct {
ID string `json:"id"`
Title string `json:"title"`
}