Files
mws.backend.dotnet/application/Documents/IDocumentContentStore.cs
T
2026-09-06 12:33:38 +07:00

11 lines
519 B
C#

namespace mws.backend.dotnet.application.Documents;
public interface IDocumentContentStore
{
Task EnsureBucketAsync(Guid projectId, CancellationToken ct);
Task UploadAsync(Guid projectId, Guid documentId, string contentType, Stream body, CancellationToken ct);
Task<Stream> DownloadAsync(Guid projectId, Guid documentId, CancellationToken ct);
Task<bool> ExistsAsync(Guid projectId, Guid documentId, CancellationToken ct);
Task DeleteAsync(Guid projectId, Guid documentId, CancellationToken ct);
}