fix
This commit is contained in:
56
Application/Dto/Periodic/PeriodicDto.cs
Normal file
56
Application/Dto/Periodic/PeriodicDto.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user