网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
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);
}
loading