Refactor envelope sender handling and update namespaces
Changed the namespace for `EnvelopeQuery` and updated the `Sender` parameter type to `SenderQuery?`. Removed `UserQuery.cs` as it is no longer needed. Introduced `SenderQuery.cs` with properties for sender details and added XML documentation for clarity.
This commit is contained in:
parent
2f8d5f1fc8
commit
99b0dba79f
@ -11,7 +11,7 @@ namespace EnvelopeGenerator.Application.Envelopes;
|
|||||||
/// <param name="Uuid">Die universell eindeutige Kennung des Umschlags.</param>
|
/// <param name="Uuid">Die universell eindeutige Kennung des Umschlags.</param>
|
||||||
public record EnvelopeQuery(
|
public record EnvelopeQuery(
|
||||||
int? Id = null,
|
int? Id = null,
|
||||||
UserQuery? Sender = null,
|
SenderQuery? Sender = null,
|
||||||
int? Status = null,
|
int? Status = null,
|
||||||
string? Uuid = null) : IRequest
|
string? Uuid = null) : IRequest
|
||||||
{
|
{
|
||||||
|
|||||||
11
EnvelopeGenerator.Application/Envelopes/SenderQuery.cs
Normal file
11
EnvelopeGenerator.Application/Envelopes/SenderQuery.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
namespace EnvelopeGenerator.Application.Envelopes;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Repräsentiert eine Abfrage für einen Absender.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Id">Die eindeutige Kennung des Absenders.</param>
|
||||||
|
/// <param name="Username">Der Benutzername des Absenders.</param>
|
||||||
|
/// <param name="Email">Die E-Mail-Adresse des Absenders.</param>
|
||||||
|
public record SenderQuery(int? Id = null, string? Username = null, string? Email = null)
|
||||||
|
{
|
||||||
|
}
|
||||||
@ -1,5 +0,0 @@
|
|||||||
namespace EnvelopeGenerator.Application.Envelopes;
|
|
||||||
|
|
||||||
public record UserQuery(int? Id = null, string? Username = null, string? Email = null)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user