namespace TakeoutSaaS.Application.Dictionary.Models;
///
/// 字典导入结果 DTO。
///
public sealed class DictionaryImportResultDto
{
///
/// 成功数量。
///
public int SuccessCount { get; init; }
///
/// 跳过数量。
///
public int SkipCount { get; init; }
///
/// 错误数量。
///
public int ErrorCount { get; init; }
///
/// 错误列表。
///
public IReadOnlyList Errors { get; init; } = Array.Empty();
///
/// 处理耗时。
///
public TimeSpan Duration { get; init; }
///
/// 导入错误详情。
///
public sealed class ImportError
{
///
/// 行号。
///
public int RowNumber { get; init; }
///
/// 字段名。
///
public string Field { get; init; } = string.Empty;
///
/// 错误信息。
///
public string Message { get; init; } = string.Empty;
}
}