Updated project references and introduced MediatR for handling envelope history queries. Added new mapping profile and response class, and refactored the HistoryController to utilize the mediator pattern for improved query handling.
18 lines
774 B
C#
18 lines
774 B
C#
using EnvelopeGenerator.Common;
|
|
using MediatR;
|
|
|
|
namespace EnvelopeGenerator.Application.Histories.Queries.Read;
|
|
|
|
//TODO: Add sender query
|
|
/// <summary>
|
|
/// Repräsentiert eine Abfrage für die Verlaufshistorie eines Umschlags.
|
|
/// </summary>
|
|
/// <param name="EnvelopeId">Die eindeutige Kennung des Umschlags.</param>
|
|
/// <param name="Status">Der Status des Umschlags, der abgefragt werden soll. Kann optional angegeben werden, um die Ergebnisse zu filtern.</param>
|
|
/// <param name="OnlyLast">Abfrage zur Steuerung, ob nur der aktuelle Status oder der gesamte Datensatz zurückgegeben wird.</param>
|
|
public record ReadHistoryQuery(
|
|
int EnvelopeId,
|
|
Constants.EnvelopeStatus? Status = null,
|
|
bool? OnlyLast = true) : IRequest<IEnumerable<ReadHistoryResponse>>
|
|
{
|
|
}; |