39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
namespace BudgetApp.PublicModels
|
|
{
|
|
public class YearSummaryDto
|
|
{
|
|
public int Year { get; set; }
|
|
public decimal Balance { get; set; }
|
|
public List<MonthSummaryDto> Months { get; set; } = [];
|
|
}
|
|
|
|
public class MonthSummaryDto
|
|
{
|
|
public int Month { get; set; }
|
|
public decimal Balance { get; set; }
|
|
public List<DaySummaryDto> Days { get; set; } = [];
|
|
}
|
|
|
|
public class DaySummaryDto
|
|
{
|
|
public DateOnly Date { get; set; }
|
|
public decimal Balance { get; set; }
|
|
public List<TransactionDto> Transactions { get; set; } = [];
|
|
}
|
|
|
|
public class TransactionDto
|
|
{
|
|
public int Id { get; set; }
|
|
public DateOnly Date { get; set; }
|
|
public decimal Amount { get; set; }
|
|
public decimal Balance { get; set; }
|
|
public string OperationDescription { get; set; } = string.Empty;
|
|
public string Note { get; set; } = string.Empty;
|
|
public string Category { get; set; } = string.Empty;
|
|
public string TransactionId { get; set; } = string.Empty;
|
|
public DateTime Created { get; set; }
|
|
public DateTime Updated { get; set; }
|
|
public DateTime? Deleted { get; set; }
|
|
}
|
|
}
|