This commit is contained in:
SunCheng
2026-02-10 17:49:19 +08:00
parent 3e18283e52
commit d052ae5197
104 changed files with 10369 additions and 3000 deletions

View File

@@ -0,0 +1,56 @@
namespace Application.Dto.Periodic;
/// <summary>
/// 周期性账单响应
/// </summary>
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; }
}
/// <summary>
/// 创建周期性账单请求
/// </summary>
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; }
}
/// <summary>
/// 更新周期性账单请求
/// </summary>
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; }
}
/// <summary>
/// 周期性账单分页结果
/// </summary>
public record PeriodicPagedResult
{
public PeriodicResponse[] Data { get; init; } = [];
public int Total { get; init; }
}