Publish from private repository

This commit is contained in:
Gitea Actions
2026-08-01 11:48:55 +00:00
commit 814c39f5ce
617 changed files with 65073 additions and 0 deletions
@@ -0,0 +1,8 @@
namespace MyOffice.Services.Currency.Domain;
public enum CurrencyAddRateStatus
{
not_found,
success,
failed,
}
@@ -0,0 +1,9 @@
namespace MyOffice.Services.Currency.Domain
{
public enum CurrencyAddStatus
{
success,
failed,
exists,
}
}
@@ -0,0 +1,32 @@
/// <see cref="MyOffice.Data.Models.Currencies.Currency"/>
namespace MyOffice.Services.Currency.Domain;
using AutoMapper;
using MyOffice.Data.Models.Currencies;
using MyOffice.Services.Account.Domain;
public class CurrencyDto
{
public Guid Id { get; set; }
public string CurrencyGlobalId { get; set; } = null!;
public CurrencyGlobalDto? CurrencyGlobal { get; set; }
public Guid UserId { get; set; }
public UserDto? User { get; set; }
public string Name { get; set; } = null!;
public string ShortName { get; set; } = null!;
public List<CurrencyRateDto>? Rates { get; set; }
public int? CurrentRateId { get; set; }
public CurrencyRateDto? CurrentRate { get; set; }
public bool IsPrimary { get; set; }
}
public class CurrencyDtoProfile: Profile
{
public CurrencyDtoProfile()
{
CreateMap<Currency, CurrencyDto>();
}
}
@@ -0,0 +1,8 @@
namespace MyOffice.Services.Currency.Domain;
public class CurrencyEdit
{
public string Name { get; set; } = null!;
public string ShortName { get; set; } = null!;
public bool IsPrimary { get; set; }
}
@@ -0,0 +1,8 @@
namespace MyOffice.Services.Currency.Domain;
public enum CurrencyEditStatus
{
success,
not_found,
failed,
}
@@ -0,0 +1,21 @@
/// <see cref="MyOffice.Data.Models.Currencies.CurrencyGlobal"/>
namespace MyOffice.Services.Currency.Domain;
using AutoMapper;
using MyOffice.Data.Models.Currencies;
public class CurrencyGlobalDto
{
public string Id { get; set; } = null!;
public string Name { get; set; } = null!;
public string Symbol { get; set; } = null!;
public int DefaultQuantity { get; set; }
}
public class CurrencyGlobalDtoProfile: Profile
{
public CurrencyGlobalDtoProfile()
{
CreateMap<CurrencyGlobal, CurrencyGlobalDto>();
}
}
@@ -0,0 +1,24 @@
/// <see cref="MyOffice.Data.Models.Currencies.CurrencyRate"/>
namespace MyOffice.Services.Currency.Domain;
using AutoMapper;
using MyOffice.Data.Models.Currencies;
public class CurrencyRateDto
{
public int Id { get; set; }
public Guid CurrencyId { get; set; }
public CurrencyDto? Currency { get; set; }
public DateTime DateTime { get; set; }
public int Quantity { get; set; }
public decimal Rate { get; set; }
public List<CurrencyDto>? Currencies { get; set; }
}
public class CurrencyRateDtoProfile : Profile
{
public CurrencyRateDtoProfile()
{
CreateMap<CurrencyRate, CurrencyRateDto>();
}
}
@@ -0,0 +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; }
}