18 lines
597 B
C#
18 lines
597 B
C#
namespace DramaLing.Api.Services.Storage;
|
|
|
|
public interface IImageStorageService
|
|
{
|
|
Task<string> SaveImageAsync(Stream imageStream, string fileName);
|
|
Task<string> GetImageUrlAsync(string imagePath);
|
|
Task<bool> DeleteImageAsync(string imagePath);
|
|
Task<StorageInfo> GetStorageInfoAsync();
|
|
Task<bool> ImageExistsAsync(string imagePath);
|
|
}
|
|
|
|
public class StorageInfo
|
|
{
|
|
public string Provider { get; set; } = string.Empty;
|
|
public long TotalSizeBytes { get; set; }
|
|
public int FileCount { get; set; }
|
|
public string Status { get; set; } = string.Empty;
|
|
} |