forked from gongxuegit/tiku-backend.net
feat: add referral qrcode generation provider
This commit is contained in:
@@ -46,6 +46,18 @@ public sealed record ObjectStorageHeadRequest(
|
||||
long? DeclaredFileSizeBytes = null,
|
||||
string? DeclaredChecksumSha256 = null);
|
||||
|
||||
public sealed record ObjectStorageWriteRequest(
|
||||
Guid TenantId,
|
||||
string Provider,
|
||||
string Bucket,
|
||||
string ObjectKey,
|
||||
string MimeType,
|
||||
Stream Content,
|
||||
long? FileSizeBytes,
|
||||
string? ChecksumSha256 = null,
|
||||
IReadOnlyDictionary<string, string>? Metadata = null,
|
||||
bool Upsert = true);
|
||||
|
||||
public sealed record ObjectStorageSignedUrl(
|
||||
string Provider,
|
||||
string? Bucket,
|
||||
@@ -70,6 +82,18 @@ public sealed record ObjectStorageMetadata(
|
||||
IReadOnlyDictionary<string, string> RawHeaders,
|
||||
string VerificationSource);
|
||||
|
||||
public sealed record ObjectStorageWriteResult(
|
||||
string Provider,
|
||||
string Bucket,
|
||||
string ObjectKey,
|
||||
Uri? PublicUrl,
|
||||
long? SizeBytes,
|
||||
string? MimeType,
|
||||
string? ChecksumSha256,
|
||||
string? ETag,
|
||||
IReadOnlyDictionary<string, string> RawHeaders,
|
||||
string VerificationSource);
|
||||
|
||||
public class ObjectStorageException(string message, string code) : InvalidOperationException(message)
|
||||
{
|
||||
public string Code { get; } = code;
|
||||
|
||||
Reference in New Issue
Block a user