feat: BaseCreateDto zur Verfolgung von Erstellung hinzufügen
- BaseCreateDto eingeführt, um Metadaten zur Erstellung zu kapseln. - Eigenschaften umfassen AddedWho und AddedWhen, beide mit JsonIgnore markiert, um von der Serialisierung ausgeschlossen zu werden.
This commit is contained in:
parent
bc9ac273ea
commit
23e2267d00
13
WorkFlow.Application/DTO/BaseCreateDto.cs
Normal file
13
WorkFlow.Application/DTO/BaseCreateDto.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
|
namespace WorkFlow.Application.DTO
|
||||||
|
{
|
||||||
|
public record BaseCreateDto
|
||||||
|
{
|
||||||
|
[JsonIgnore]
|
||||||
|
public required string AddedWho { get; set; } = "UNKNOWN";
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public required DateTime AddedWhen = DateTime.Now;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user