Files
TakeoutSaaS.TenantApi/src/Application/TakeoutSaaS.Application/Storage/Contracts/DirectUploadRequest.cs

38 lines
964 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.
using TakeoutSaaS.Application.Storage.Enums;
namespace TakeoutSaaS.Application.Storage.Contracts;
/// <summary>
/// 直传凭证请求模型。
/// </summary>
/// <remarks>
/// 创建直传请求。
/// </remarks>
public sealed class DirectUploadRequest(UploadFileType fileType, string fileName, string contentType, long contentLength, string? requestOrigin)
{
/// <summary>
/// 文件类型。
/// </summary>
public UploadFileType FileType { get; } = fileType;
/// <summary>
/// 文件名。
/// </summary>
public string FileName { get; } = fileName;
/// <summary>
/// 内容类型。
/// </summary>
public string ContentType { get; } = contentType;
/// <summary>
/// 文件长度。
/// </summary>
public long ContentLength { get; } = contentLength;
/// <summary>
/// 请求来源Origin/Referer
/// </summary>
public string? RequestOrigin { get; } = requestOrigin;
}