feat(Config): Erstellen, Lesen und Aktualisieren von DTOs unter Verwendung von Basis-DTOs zum Aktualisieren und Erstellen.
This commit is contained in:
@@ -4,6 +4,8 @@ namespace WorkFlow.Application.DTO
|
||||
{
|
||||
public record BaseUpdateDto
|
||||
{
|
||||
public required int Id { get; init; }
|
||||
|
||||
[JsonIgnore]
|
||||
public required string ChangedWho { get; set; } = "UNKNOWN";
|
||||
|
||||
|
||||
4
WorkFlow.Application/DTO/Config/ConfigCreateDto.cs
Normal file
4
WorkFlow.Application/DTO/Config/ConfigCreateDto.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
namespace WorkFlow.Application.DTO.Config
|
||||
{
|
||||
public record ConfigCreateDto(string Title, string String);
|
||||
}
|
||||
10
WorkFlow.Application/DTO/Config/ConfigDto.cs
Normal file
10
WorkFlow.Application/DTO/Config/ConfigDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace WorkFlow.Application.DTO.Config
|
||||
{
|
||||
public record ConfigDto(int Id,
|
||||
string Title,
|
||||
string String,
|
||||
string AddedWho,
|
||||
DateTime AddedWhen,
|
||||
string? ChangedWho = null,
|
||||
DateTime? ChangedWhen = null);
|
||||
}
|
||||
4
WorkFlow.Application/DTO/Config/ConfigUpdateDto.cs
Normal file
4
WorkFlow.Application/DTO/Config/ConfigUpdateDto.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
namespace WorkFlow.Application.DTO.Config
|
||||
{
|
||||
public record ConfigUpdateDto(string Title, string String) : BaseUpdateDto;
|
||||
}
|
||||
Reference in New Issue
Block a user