fix
This commit is contained in:
38
Application/Dto/ImportDto.cs
Normal file
38
Application/Dto/ImportDto.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user