namespace Shared.Contracts;
///
/// Generic envelope used to wrap API responses that carry a data payload alongside a message.
///
public record ResponseBody
{
/// Gets the human-readable message describing the response.
public required string Message { get; init; }
/// Gets the response's data payload.
public required T Payload { get; init; }
}
///
/// Envelope used to wrap API responses that carry only a message and no data payload.
///
public record ResponseBody
{
/// Gets the human-readable message describing the response.
public required string Message { get; init; }
}