Files
EmailBill/Application/Dto/ImportDto.cs
SunCheng d052ae5197 fix
2026-02-10 17:49:19 +08:00

39 lines
781 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
}