Files
vigilcare-records/VigilCareRecordsAPI/Services/Interfaces/IDocumentStorageService.cs
T
Trent 3c7bf5bccb
CI / backend (push) Failing after 38s
CI / frontend (push) Successful in 9m35s
Harden workstation UX and seed placeholder scans after Playwright QA.
Fix mobile queue navigation, draft/loading states, and Intake overflow; seed MinIO demo PDFs so document viewing does not 500; add e2e smoke coverage.
2026-10-06 15:07:15 +08:00

10 lines
585 B
C#

public interface IDocumentStorageService
{
Task<(string objectKey, string sha256, long fileSize)> UploadAsync(Stream fileStream, string contentType, Guid batchId);
Task<string> GetPresignedUrlAsync(string objectKey);
Task<Stream> DownloadAsync(string objectKey);
/// <summary>Returns false when the object is missing from the bucket.</summary>
Task<bool> ObjectExistsAsync(string objectKey);
/// <summary>Uploads bytes only when the object key is not already present.</summary>
Task EnsureObjectAsync(string objectKey, byte[] content, string contentType);
}