✨ File index
This commit is contained in:
@@ -22,6 +22,7 @@ public class FileUploadParameters
|
||||
public string? EncryptPassword { get; set; }
|
||||
public string Hash { get; set; } = string.Empty;
|
||||
public List<int> UploadedChunks { get; set; } = [];
|
||||
public string? Path { get; set; }
|
||||
}
|
||||
|
||||
// File Move Task Parameters
|
||||
@@ -93,6 +94,7 @@ public class CreateUploadTaskRequest
|
||||
public string? EncryptPassword { get; set; }
|
||||
public Instant? ExpiredAt { get; set; }
|
||||
public long? ChunkSize { get; set; }
|
||||
public string? Path { get; set; }
|
||||
}
|
||||
|
||||
public class CreateUploadTaskResponse
|
||||
@@ -301,6 +303,17 @@ public class PersistentUploadTask : PersistentTask
|
||||
TypedParameters = parameters;
|
||||
}
|
||||
}
|
||||
|
||||
public string? Path
|
||||
{
|
||||
get => TypedParameters.Path;
|
||||
set
|
||||
{
|
||||
var parameters = TypedParameters;
|
||||
parameters.Path = value;
|
||||
TypedParameters = parameters;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum TaskType
|
||||
@@ -654,4 +667,4 @@ public enum UploadTaskStatus
|
||||
Completed = TaskStatus.Completed,
|
||||
Failed = TaskStatus.Failed,
|
||||
Expired = TaskStatus.Expired
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user