feat: add referral qrcode generation provider

This commit is contained in:
xiong
2026-07-26 20:45:14 +08:00
parent 4279795d46
commit 7c1fe7688b
11 changed files with 490 additions and 8 deletions

View File

@@ -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;