31 lines
597 B
Go
31 lines
597 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
|
|
}
|
|
|
|
type DashboardTreasureChest struct {
|
|
Name string
|
|
Value int64
|
|
Children []DashboardTreasureChest
|
|
}
|