39 lines
781 B
C#
39 lines
781 B
C#
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;
|
||
}
|