feat (EnvelopeReceiverReadOnly): Erstellt „data-transfer-objects“.

- Erstellt „Read-DTO“
 - Erstellt „Create-DTO
 - Erstellt „Update-DTO“ um nur „DateValid“ zu aktualisieren.
This commit is contained in:
Developer 02 2024-09-30 14:39:22 +02:00
parent c69c39fa44
commit 806bd3b248
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,11 @@
namespace EnvelopeGenerator.Application.DTOs.EnvelopeReceiverReadOnly
{
public record EnvelopeReceiverReadOnlyCreateDto(
long EnvelopeId,
string ReceiverMail,
DateTime DateValid,
string AddedWho)
{
public DateTime AddedWhen { get; } = DateTime.Now;
};
}

View File

@ -0,0 +1,13 @@
namespace EnvelopeGenerator.Application.DTOs.EnvelopeReceiverReadOnly
{
public record EnvelopeReceiverReadOnlyDto(
long Id,
long EnvelopeId,
string ReceiverMail,
DateTime DateValid,
DateTime AddedWhen,
string AddedWho,
EnvelopeDto? Envelope = null,
string? ChangedWho = null,
DateTime? ChangedWhen = null);
}

View File

@ -0,0 +1,10 @@
namespace EnvelopeGenerator.Application.DTOs.EnvelopeReceiverReadOnly
{
public record EnvelopeReceiverReadOnlyUpdateDto(
long Id,
DateTime DateValid,
string ChangedWho)
{
public DateTime ChangedWhen { get; } = DateTime.Now;
};
}