namespace Application.Dto.Periodic;
///
/// 周期性账单响应
///
public record PeriodicResponse
{
public long Id { get; init; }
public PeriodicType PeriodicType { get; init; }
public string PeriodicConfig { get; init; } = string.Empty;
public decimal Amount { get; init; }
public TransactionType Type { get; init; }
public string Classify { get; init; } = string.Empty;
public string Reason { get; init; } = string.Empty;
public bool IsEnabled { get; init; }
public DateTime? NextExecuteTime { get; init; }
public DateTime CreateTime { get; init; }
public DateTime? UpdateTime { get; init; }
}
///
/// 创建周期性账单请求
///
public record CreatePeriodicRequest
{
public PeriodicType PeriodicType { get; init; }
public string? PeriodicConfig { get; init; }
public decimal Amount { get; init; }
public TransactionType Type { get; init; }
public string? Classify { get; init; }
public string? Reason { get; init; }
}
///
/// 更新周期性账单请求
///
public record UpdatePeriodicRequest
{
public long Id { get; init; }
public PeriodicType PeriodicType { get; init; }
public string? PeriodicConfig { get; init; }
public decimal Amount { get; init; }
public TransactionType Type { get; init; }
public string? Classify { get; init; }
public string? Reason { get; init; }
public bool IsEnabled { get; init; }
}
///
/// 周期性账单分页结果
///
public record PeriodicPagedResult
{
public PeriodicResponse[] Data { get; init; } = [];
public int Total { get; init; }
}