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,4 +1,6 @@
namespace DigitalData.UserManager.Application.DTOs.UserRep
using DigitalData.UserManager.Application.DTOs.Base;
namespace DigitalData.UserManager.Application.DTOs.UserRep
{
public record UserRepCreateDto(
int UserId,
@@ -6,5 +8,5 @@
int RightGroupId,
string AddedWho,
int RepUserId
);
) : BaseCreateDto();
}

View File

@@ -1,4 +1,5 @@
using DigitalData.UserManager.Application.DTOs.Group;
using DigitalData.UserManager.Application.DTOs.Base;
using DigitalData.UserManager.Application.DTOs.Group;
using DigitalData.UserManager.Application.DTOs.User;
namespace DigitalData.UserManager.Application.DTOs.UserRep
@@ -9,10 +10,13 @@ namespace DigitalData.UserManager.Application.DTOs.UserRep
int? RepGroupId,
int RightGroupId,
string AddedWho,
string ChangedWho,
int? RepUserId,
UserReadDto? User,
GroupReadDto? RepGroup,
GroupReadDto? RightGroup,
UserReadDto? RepUser
);
UserReadDto? RepUser,
DateTime? AddedWhen,
DateTime? ChangedWhen
) : BaseReadDto(Id, AddedWho, AddedWhen, ChangedWho, ChangedWhen);
}

View File

@@ -1,9 +1,11 @@
namespace DigitalData.UserManager.Application.DTOs.UserRep
using DigitalData.UserManager.Application.DTOs.Base;
namespace DigitalData.UserManager.Application.DTOs.UserRep
{
public record UserRepUpdateDto(
int UserId,
int? RepGroupId,
int RightGroupId,
int RepUserId
);
) : BaseUpdateDto();
}