This commit is contained in:
2023-12-01 20:47:42 +02:00
parent a09fc7ece3
commit 045f60e373
39 changed files with 1252 additions and 945 deletions
@@ -2,21 +2,22 @@
using MyOffice.Data.Models.Currencies;
using MyOffice.Data.Models.Users;
using MyOffice.Services.Account.Domain;
public class CurrencyDto
{
public Guid Id { get; set; }
public string CurrencyGlobalId { get; set; } = null!;
public CurrencyGlobal? CurrencyGlobal { get; set; }
public CurrencyGlobalDto? CurrencyGlobal { get; set; }
public Guid UserId { get; set; }
public User? User { get; set; }
public UserDto? User { get; set; }
public string Name { get; set; } = null!;
public string ShortName { get; set; } = null!;
public IEnumerable<CurrencyRate>? Rates { get; set; }
public List<CurrencyRateDto>? Rates { get; set; }
public int? CurrentRateId { get; set; }
public CurrencyRate? CurrentRate { get; set; }
public CurrencyRateDto? CurrentRate { get; set; }
public bool IsPrimary { get; set; }
}
}
@@ -8,5 +8,5 @@ public class CurrencyRateDto
public DateTime DateTime { get; set; }
public int Quantity { get; set; }
public decimal Rate { get; set; }
public IEnumerable<CurrencyDto>? Currencies { get; set; }
public List<CurrencyDto>? Currencies { get; set; }
}
@@ -1,7 +1,9 @@
namespace MyOffice.Services.Currency.Domain;
using MyOffice.Data.Models.Currencies;
public class CurrencyWithRateDto
{
public CurrencyDto Currency { get; set; } = null!;
public CurrencyRateDto? Rate { get; set; }
}
}