refactor: Basis-DTO für alle Erstellungs-, Lese- und Aktualisierungs-DTOs außer Module und ModuleOfUser vererbt

- Vererbung von BaseDTO auf alle Erstellungs-, Lese- und Aktualisierungs-DTOs angewendet, mit Ausnahme von Module und ModuleOfUser.
This commit is contained in:
Developer 02
2024-08-14 19:05:15 +02:00
parent a2077c58ca
commit a5002a3038
10 changed files with 39 additions and 35 deletions

View File

@@ -1,6 +1,8 @@
namespace DigitalData.UserManager.Application.DTOs.User
using DigitalData.UserManager.Application.DTOs.Base;
namespace DigitalData.UserManager.Application.DTOs.User
{
public record class UserCreateDto
public record class UserCreateDto() : BaseCreateDto()
{
public string? Prename { get; init; }
public string? Name { get; init; }
@@ -11,7 +13,6 @@
public string? Comment { get; init; }
public bool? Deleted { get; init; }
public string DateFormat { get; init; } = "dd.MM.yyyy";
public string AddedWho { get; init; } = "DEFAULT";
public string? ChangedWho { get; init; }
public bool Active { get; init; } = true;
}

View File

@@ -1,4 +1,6 @@
namespace DigitalData.UserManager.Application.DTOs.User
using DigitalData.UserManager.Application.DTOs.Base;
namespace DigitalData.UserManager.Application.DTOs.User
{
public record UserUpdateDto(
int Id,
@@ -11,8 +13,6 @@
string? Comment,
bool? Deleted,
string? DateFormat,
string? AddedWho,
string? ChangedWho,
bool? Active
);
) : BaseUpdateDto();
}