using TakeoutSaaS.Domain.Tenants.Entities;

namespace TakeoutSaaS.Domain.Tenants.Repositories;

/// <summary>
/// 租户配额使用历史仓储。
/// </summary>
public interface ITenantQuotaUsageHistoryRepository
{
    /// <summary>
    /// 新增历史记录。
    /// </summary>
    /// <param name="history">历史记录实体。</param>
    /// <param name="cancellationToken">取消标记。</param>
    Task AddAsync(TenantQuotaUsageHistory history, CancellationToken cancellationToken = default);

    /// <summary>
    /// 持久化。
    /// </summary>
    /// <param name="cancellationToken">取消标记。</param>
    Task SaveChangesAsync(CancellationToken cancellationToken = default);
}

