refactor(EnvelopeReceiverDto): add option to make Receiver property generic
This commit is contained in:
parent
7d0648ede4
commit
e5a25c5893
@ -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>;
|
||||
Loading…
x
Reference in New Issue
Block a user