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:
Developer 02 2025-04-10 18:50:24 +02:00
parent 2f8d5f1fc8
commit 99b0dba79f
3 changed files with 12 additions and 6 deletions

View File

@ -11,7 +11,7 @@ namespace EnvelopeGenerator.Application.Envelopes;
/// <param name="Uuid">Die universell eindeutige Kennung des Umschlags.</param>
public record EnvelopeQuery(
int? Id = null,
UserQuery? Sender = null,
SenderQuery? Sender = null,
int? Status = null,
string? Uuid = null) : IRequest
{

View 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)
{
}

View File

@ -1,5 +0,0 @@
namespace EnvelopeGenerator.Application.Envelopes;
public record UserQuery(int? Id = null, string? Username = null, string? Email = null)
{
}