Files
spend-sparrow/internal/types/dashboard.go
Tim Wundenberg d3c7a96ada
Some checks failed
Build Docker Image / Build-Docker-Image (push) Has been cancelled
feat(dashboard): #82 add chart for sum of account and savings
2025-06-19 17:55:40 +02:00

25 lines
489 B
Go

package types
import "time"
type DashboardMonthlySummary struct {
Month time.Time
// Sum of all Transactions with TreasureChests and no Accounts
Savings int64
// Sum of all Transactions with Accounts and no TreasureChests
Income int64
// Sum of all Transactions with Accounts and TreasureChests
Expenses int64
// Income - Expenses
Total int64
SumOfSavings int64
SumOfAccounts int64
}
type DashboardMainChartEntry struct {
Day time.Time
Value int64
Savings int64
}