♻️ Extract the Storage service to DysonNetwork.Drive microservice
This commit is contained in:
17
DysonNetwork.Common/Interfaces/IFileServiceClient.cs
Normal file
17
DysonNetwork.Common/Interfaces/IFileServiceClient.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using DysonNetwork.Common.Models;
|
||||
|
||||
namespace DysonNetwork.Common.Interfaces
|
||||
{
|
||||
public interface IFileServiceClient
|
||||
{
|
||||
Task<CloudFile> GetFileAsync(string fileId);
|
||||
Task<Stream> GetFileStreamAsync(string fileId);
|
||||
Task<CloudFile> UploadFileAsync(Stream fileStream, string fileName, string? contentType = null);
|
||||
Task DeleteFileAsync(string fileId);
|
||||
Task<CloudFile> ProcessImageAsync(Stream imageStream, string fileName, string? contentType = null);
|
||||
Task<string> GetFileUrl(string fileId, bool useCdn = false);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user