Implemented missing file handling endpoints
Added contract update endpoint
This commit is contained in:
@@ -2,6 +2,8 @@ namespace PostFundManagement.Domain.Abstractions;
|
||||
|
||||
public interface IS3Service
|
||||
{
|
||||
ValueTask<Result<string>> UploadFileAsync(string fileName, Stream fileStream, string contentType, CancellationToken cancellationToken = default);
|
||||
string GenerateCdnUrl(string fileKey);
|
||||
ValueTask<Result<string>> GeneratePresignedUrlAsync(string fileKey, TimeSpan duration, string? contentType = null, CancellationToken cancellationToken = default);
|
||||
ValueTask<Result<string>> UploadFileAsync(string fileName, string subPath, Stream fileStream, string contentType, CancellationToken cancellationToken = default);
|
||||
ValueTask<Result> DeleteFileAsync(string fileKey, CancellationToken cancellationToken = default);
|
||||
}
|
||||
@@ -16,11 +16,7 @@ public static class Constants
|
||||
|
||||
public const string ContractS3SettingsSection = "ContractS3Settings";
|
||||
|
||||
public const string GeneralBucketName = "pfm.general";
|
||||
|
||||
public const string EvidenceBucketName = "pfm.evidence";
|
||||
|
||||
public const string ContractBucketName = "pfm.contract";
|
||||
public const string GeneralBucketName = "pfm";
|
||||
|
||||
public const string DatabaseConfigName = "PfmDatabase";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user