namespace Entity;
public class BudgetArchive : BaseEntity
{
///
/// 归档目标年份
///
public int Year { get; set; }
///
/// 归档目标月份
///
public int Month { get; set; }
///
/// 归档内容
///
[JsonMap]
public BudgetArchiveContent[] Content { get; set; } = [];
///
/// 归档日期
///
public DateTime ArchiveDate { get; set; } = DateTime.Now;
public string? Summary { get; set; }
}
public record BudgetArchiveContent
{
///
/// 预算名称
///
public string Name { get; set; } = string.Empty;
///
/// 统计周期
///
public BudgetPeriodType Type { get; set; } = BudgetPeriodType.Month;
///
/// 预算金额
///
public decimal Limit { get; set; }
///
/// 实际金额
///
public decimal Actual { get; set; }
///
/// 预算类别
///
public BudgetCategory Category { get; set; }
///
/// 相关分类 (逗号分隔的分类名称)
///
public string[] SelectedCategories { get; set; } = [];
///
/// 描述说明
///
public string Description { get; set; } = string.Empty;
}