- Introduced a new `UserQuery` record to encapsulate user-related information, replacing individual fields in `EnvelopeQuery`. - Added a `ReferenceType` property in `EnvelopeHistoryQuery` to enhance reference handling logic. - Modified `EnvelopeQuery` to use the new `UserQuery` structure, simplifying the data model. - Updated `HistoryController` with a new constructor and restructured the `GetReferenceTypes` method. - Introduced `ReadEnvelopeHistoryQuery` to allow for more specific envelope history queries. - Overall improvements enhance code structure, clarity, and querying capabilities.
18 lines
789 B
C#
18 lines
789 B
C#
using EnvelopeGenerator.Application.Envelopes.Queries.Read;
|
|
using EnvelopeGenerator.Application.Receivers.Queries.Read;
|
|
|
|
namespace EnvelopeGenerator.Application.EnvelopeHistories.Queries.Read;
|
|
|
|
/// <summary>
|
|
/// Repräsentiert eine Abfrage für die Verlaufshistorie eines Umschlags.
|
|
/// </summary>
|
|
/// <param name="EnvelopeId">Die eindeutige Kennung des Umschlags.</param>
|
|
/// <param name="Envelope">Die Abfrage, die den Umschlag beschreibt.</param>
|
|
/// <param name="Receiver">Die Abfrage, die den Empfänger beschreibt.</param>
|
|
public record ReadEnvelopeHistoryQuery(
|
|
int EnvelopeId,
|
|
ReadEnvelopeQuery? Envelope,
|
|
ReadReceiverQuery? Receiver,
|
|
StatusQuery? Status)
|
|
: EnvelopeHistoryQuery<ReadEnvelopeQuery, ReadReceiverQuery>(EnvelopeId, Envelope, Receiver, Status);
|