mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
17 lines
451 B
C#
17 lines
451 B
C#
|
using System;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Microsoft.AspNetCore.Http;
|
|||
|
|
|||
|
namespace BTCPayServer.Abstractions.Contracts;
|
|||
|
|
|||
|
public interface IFileService
|
|||
|
{
|
|||
|
Task<IStoredFile> AddFile(IFormFile file, string userId);
|
|||
|
Task<string?> GetFileUrl(Uri baseUri, string fileId);
|
|||
|
|
|||
|
Task<string?> GetTemporaryFileUrl(Uri baseUri, string fileId, DateTimeOffset expiry,
|
|||
|
bool isDownload);
|
|||
|
|
|||
|
Task RemoveFile(string fileId, string userId);
|
|||
|
}
|