Files

39 lines
781 B
C#
Raw Permalink Normal View History

2026-02-10 17:49:19 +08:00
namespace Application.Dto;
/// <summary>
/// 导入请求
/// </summary>
public record ImportRequest
{
/// <summary>
/// 文件流
/// </summary>
public required Stream FileStream { get; init; }
/// <summary>
/// 文件扩展名(.csv, .xlsx, .xls
/// </summary>
public required string FileExtension { get; init; }
/// <summary>
/// 文件名
/// </summary>
public string FileName { get; init; } = string.Empty;
/// <summary>
/// 文件大小(字节)
/// </summary>
public long FileSize { get; init; }
}
/// <summary>
/// 导入响应
/// </summary>
public record ImportResponse
{
/// <summary>
/// 导入结果消息
/// </summary>
public string Message { get; init; } = string.Empty;
}