Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace ExpenseTracker.Api.DTOs;
|
||||
|
||||
public record CategoryDto(
|
||||
Guid Id,
|
||||
string Name,
|
||||
string Color);
|
||||
|
||||
public record CreateCategoryDto(
|
||||
string Name,
|
||||
string Color);
|
||||
@@ -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);
|
||||
@@ -0,0 +1,21 @@
|
||||
namespace ExpenseTracker.Api.DTOs;
|
||||
|
||||
public record MonthDto(
|
||||
Guid Id,
|
||||
int Year,
|
||||
int MonthNumber,
|
||||
decimal DefaultSalary,
|
||||
DateTime CreatedAt);
|
||||
|
||||
public record CreateMonthDto(
|
||||
int Year,
|
||||
int Month,
|
||||
decimal DefaultSalary);
|
||||
|
||||
public record MonthSummaryDto(
|
||||
Guid MonthId,
|
||||
int Year,
|
||||
int MonthNumber,
|
||||
decimal TotalIncome,
|
||||
decimal TotalExpense,
|
||||
decimal Balance);
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace ExpenseTracker.Api.DTOs;
|
||||
|
||||
public record SettingsDto(
|
||||
string Key,
|
||||
string Value);
|
||||
|
||||
public record UpdateDefaultSalaryDto(
|
||||
decimal Value);
|
||||
Reference in New Issue
Block a user