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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user