36 lines
684 B
C#
36 lines
684 B
C#
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);
|