namespace Foxel.Services.Interface; public interface IStorageProvider { /// /// 保存文件 /// Task SaveAsync(Stream fileStream, string fileName, string contentType); /// /// 删除文件 /// Task DeleteAsync(string storagePath); /// /// 获取文件URL /// string GetUrl(string storagePath); /// /// 下载文件到本地临时目录 /// /// 存储路径 /// 本地文件路径 Task DownloadFileAsync(string storagePath) { // 默认实现 - 子类应重写此方法 throw new NotImplementedException("此存储提供者不支持下载文件功能"); } }