refactor(EnvelopeReceiverDto): add option to make Receiver property generic

This commit is contained in:
tekh 2025-09-08 17:32:00 +02:00
parent 7d0648ede4
commit e5a25c5893

View File

@ -6,9 +6,8 @@ namespace EnvelopeGenerator.Application.Dto.EnvelopeReceiver;
/// <summary>
///
/// </summary>
[ApiExplorerSettings(IgnoreApi = true)]
public record EnvelopeReceiverDto() : EnvelopeReceiverBasicDto()
public record EnvelopeReceiverDto<TReceiverDto> : EnvelopeReceiverBasicDto where TReceiverDto : ReceiverDto
{
/// <summary>
///
@ -18,5 +17,11 @@ public record EnvelopeReceiverDto() : EnvelopeReceiverBasicDto()
/// <summary>
///
/// </summary>
public ReceiverDto? Receiver { get; set; }
}
public TReceiverDto? Receiver { get; set; }
}
/// <summary>
///
/// </summary>
[ApiExplorerSettings(IgnoreApi = true)]
public record EnvelopeReceiverDto : EnvelopeReceiverDto<ReceiverDto>;