budgetstatistics.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package model
  2. import (
  3. "go-common/library/time"
  4. )
  5. // BudgetDayStatistics day.
  6. type BudgetDayStatistics struct {
  7. DayExpense int `json:"day_expense"`
  8. UpCount int `json:"up_count"`
  9. AvCount int `json:"av_count"`
  10. UpAvgExpense int `json:"up_avg_expense"`
  11. AvAvgExpense int `json:"av_avg_expense"`
  12. Date time.Time `json:"date"`
  13. TotalExpense int64 `json:"total_expense"`
  14. ExpenseRatio string `json:"expense_ratio"`
  15. DayRatio string `json:"day_ratio"`
  16. }
  17. // BudgetRatio budget ratio.
  18. type BudgetRatio struct {
  19. ExpenseRatio string `json:"expense_ratio"`
  20. DayRatio string `json:"day_ratio"`
  21. Year int64 `json:"year"`
  22. Budget int64 `json:"budget"`
  23. }
  24. // BudgetMonthStatistics month
  25. type BudgetMonthStatistics struct {
  26. MonthExpense int64 `json:"month_expense"`
  27. Month string `json:"month"`
  28. Date time.Time `json:"date"`
  29. UpCount int `json:"up_count"`
  30. AvCount int `json:"av_count"`
  31. UpAvgExpense int `json:"up_avg_expense"`
  32. AvAvgExpense int `json:"av_avg_expense"`
  33. TotalExpense int64 `json:"total_expense"`
  34. ExpenseRatio string `json:"expense_ratio"`
  35. }