using MediatR;
using TakeoutSaaS.Application.App.Tenants.Dto;
using TakeoutSaaS.Domain.Tenants.Enums;
using TakeoutSaaS.Shared.Abstractions.Results;

namespace TakeoutSaaS.Application.App.Tenants.Queries;

/// <summary>
/// 租户分页查询。
/// </summary>
public sealed record SearchTenantsQuery(
    TenantStatus? Status,
    string? Keyword,
    int Page = 1,
    int PageSize = 20) : IRequest<PagedResult<TenantDto>>;
