using TakeoutSaaS.Domain.Dictionary.Entities;

namespace TakeoutSaaS.Domain.Dictionary.Repositories;

/// <summary>
/// 字典导入日志仓储契约。
/// </summary>
public interface IDictionaryImportLogRepository
{
    /// <summary>
    /// 新增导入日志。
    /// </summary>
    /// <param name="log">导入日志。</param>
    /// <param name="cancellationToken">取消标记。</param>
    Task AddAsync(DictionaryImportLog log, CancellationToken cancellationToken = default);

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