清理代码
Some checks failed
ci / release-gate (push) Has been cancelled

This commit is contained in:
2026-08-03 12:31:39 +08:00
parent caea0062b0
commit c497a3ca8d
537 changed files with 14171 additions and 12503 deletions

View File

@@ -9,6 +9,7 @@ public sealed class ObjectStorageOptions
public string? PublicBaseUrl { get; set; }
public long MaxUploadBytes { get; set; } = 1024L * 1024 * 500;
public string[] AllowedMimePrefixes { get; set; } = ["image/", "video/", "audio/"];
public string[] AllowedMimeTypes { get; set; } =
[
"application/pdf",
@@ -22,8 +23,10 @@ public sealed class ObjectStorageOptions
public bool RequireTenantPrefix { get; set; } = true;
public static bool BeValid(ObjectStorageOptions options) =>
options.MaxUploadBytes > 0 &&
!string.IsNullOrWhiteSpace(options.DefaultProvider) &&
!string.IsNullOrWhiteSpace(options.DefaultBucket);
}
public static bool BeValid(ObjectStorageOptions options)
{
return options.MaxUploadBytes > 0 &&
!string.IsNullOrWhiteSpace(options.DefaultProvider) &&
!string.IsNullOrWhiteSpace(options.DefaultBucket);
}
}