using Dpz.Core.Infrastructure.PublicStruct;
namespace Dpz.Core.Shard.Service;
#nullable enable
public interface ICloudFileService
{
/// <summary>
/// 上传云文件
/// </summary>
/// <returns></returns>
Task<FileAddress?> UploadFileAsync(CloudFile file);
/// <summary>
/// 上传云文件
/// </summary>
/// <param name="files"></param>
/// <returns></returns>
Task<List<FileAddress>?> UploadFilesAsync(params CloudFile[] files);
/// <summary>
/// 上传云文件
/// </summary>
/// <param name="files"></param>
/// <returns></returns>
Task<List<FileAddress>?> UploadFilesAsync(ICollection<CloudFile> files);
/// <summary>
/// 删除文件
/// </summary>
/// <param name="pathToFile"></param>
/// <returns></returns>
Task DeleteAsync(params string[] pathToFile);
}