Files

24 lines
700 B
Go

package model
type CategoryRankingItem struct {
CategoryID int64 `json:"category_id"`
CategoryName string `json:"category_name"`
CategoryIsActive bool `json:"category_is_active"`
Amount int64 `json:"amount"`
Percent float64 `json:"percent"`
}
type TrendItem struct {
Month string `json:"month"`
Income int64 `json:"income"`
Expense int64 `json:"expense"`
Balance int64 `json:"balance"`
}
type ReportOverview struct {
Year int `json:"year"`
Month int `json:"month"`
CategoryRanking []CategoryRankingItem `json:"category_ranking"`
Trend []TrendItem `json:"trend"`
}