Initial commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
namespace ExpenseTracker.Api.DTOs;
|
||||
|
||||
public record EntryDto(
|
||||
Guid Id,
|
||||
Guid MonthId,
|
||||
string Type,
|
||||
decimal Amount,
|
||||
string Label,
|
||||
Guid? CategoryId,
|
||||
string? CategoryName,
|
||||
DateOnly EntryDate,
|
||||
DateTime CreatedAt);
|
||||
|
||||
public record CreateEntryDto(
|
||||
string Type,
|
||||
decimal Amount,
|
||||
string Label,
|
||||
Guid? CategoryId,
|
||||
DateOnly EntryDate);
|
||||
|
||||
public record UpdateEntryDto(
|
||||
string Type,
|
||||
decimal Amount,
|
||||
string Label,
|
||||
Guid? CategoryId,
|
||||
DateOnly EntryDate);
|
||||
|
||||
public record ImportErrorDto(
|
||||
int Line,
|
||||
string Message);
|
||||
|
||||
public record ImportResultDto(
|
||||
int ImportedCount,
|
||||
int ErrorCount,
|
||||
List<ImportErrorDto> Errors);
|
||||
Reference in New Issue
Block a user