using MediatR;
using TakeoutSaaS.Application.App.QuotaPackages.Dto;
using TakeoutSaaS.Shared.Abstractions.Results;

namespace TakeoutSaaS.Application.App.QuotaPackages.Queries;

/// <summary>
/// 获取租户配额购买记录查询。
/// </summary>
public sealed record GetTenantQuotaPurchasesQuery : IRequest<PagedResult<TenantQuotaPurchaseDto>>
{
    /// <summary>
    /// 租户 ID。
    /// </summary>
    public long TenantId { get; init; }

    /// <summary>
    /// 页码。
    /// </summary>
    public int Page { get; init; } = 1;

    /// <summary>
    /// 每页大小。
    /// </summary>
    public int PageSize { get; init; } = 20;
}
