feat: Basis-DTOs, Service und Controller für automatische Metadatenverwaltung hinzugefügt
- Basis-DTOs für Lese-, Erstellungs- und Aktualisierungsvorgänge erstellt, um die Felder "hinzugefügt von", "hinzugefügt am", "geändert von" und "geändert am" automatisch über Middleware zu ergänzen. - Diese Basiskomponenten in die Gruppenstruktur integriert.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
namespace DigitalData.UserManager.Application.DTOs.Base
|
||||
{
|
||||
public record BaseCreateDto()
|
||||
{
|
||||
public string AddedWho { get; set; } = "UNAUTHORIZED";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
using DigitalData.Core.DTO;
|
||||
|
||||
namespace DigitalData.UserManager.Application.DTOs.Base
|
||||
{
|
||||
public record BaseReadDto(int Id, string? AddedWho, DateTime? AddedWhen, string? ChangedWho, DateTime? ChangedWhen) : BaseDTO<int>(Id);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace DigitalData.UserManager.Application.DTOs.Base
|
||||
{
|
||||
public record BaseUpdateDto()
|
||||
{
|
||||
public string ChangedWho { get; set; } = "UNAUTHORIZED";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user