Merge branch 'master' of https://gitea.nxsir.cn/nanxun/IM_NEW
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FileService.Application.StorageContracts
|
||||
{
|
||||
public record SaveLocalPartCommand(
|
||||
string UploadSessionId,
|
||||
int PartNumber,
|
||||
Stream Stream,
|
||||
long ContentLength,
|
||||
string? Checksum = null);
|
||||
}
|
||||
@@ -25,14 +25,14 @@ namespace FileService.Application.StorageContracts
|
||||
|
||||
public int TotalPartCount { get; init; }
|
||||
|
||||
public long UploadedBytes { get; private set; }
|
||||
public long UploadedBytes { get; set; }
|
||||
|
||||
public DateTimeOffset CreatedAt { get; init; }
|
||||
|
||||
public DateTimeOffset ExpireAt { get; init; }
|
||||
|
||||
public Dictionary<int, UploadPart> Parts { get; init; } = new();
|
||||
|
||||
public UploadRuntimeCache() { }
|
||||
public UploadRuntimeCache(string taskId, string providerCode,
|
||||
string uploadSessionId, string bucket, string region,
|
||||
string objectKey, long fileSize, int totalPartCount,
|
||||
|
||||
Reference in New Issue
Block a user