26 lines
754 B
C#
26 lines
754 B
C#
namespace IM_API.Models.Upload
|
|
{
|
|
public class UploadTask
|
|
{
|
|
public Guid Id { get; set; }
|
|
|
|
public string FileName { get; set; } = default!;
|
|
public long FileSize { get; set; }
|
|
public string FileHash { get; set; }
|
|
public string ContentType { get; set; } = default!;
|
|
|
|
public int ChunkSize { get; set; }
|
|
public int TotalChunks { get; set; }
|
|
|
|
public UploadStatus Status { get; set; }
|
|
|
|
public string StorageProvider { get; set; } = default!;
|
|
public string ObjectName { get; set; } = default!;
|
|
|
|
public string? ProviderUploadId { get; set; } // OSS/S3 UploadId
|
|
|
|
public DateTimeOffset CreatedAt { get; set; }
|
|
public string? Url { get; set; }
|
|
}
|
|
}
|