using System.ComponentModel.DataAnnotations;
namespace TakeoutSaaS.Module.Storage.Options;
///
/// 七牛云 Kodo S3 兼容网关配置。
///
public sealed class QiniuKodoOptions
{
///
/// AccessKey。
///
[Required]
public string AccessKey { get; set; } = string.Empty;
///
/// SecretKey。
///
[Required]
public string SecretKey { get; set; } = string.Empty;
///
/// 绑定的空间名称。
///
[Required]
public string Bucket { get; set; } = string.Empty;
///
/// 下载域名(CDN 域名或测试域名),用于生成访问链接。
///
[Url]
public string? DownloadDomain { get; set; }
///
/// S3 兼容网关 Endpoint(如 https://s3-cn-south-1.qiniucs.com),为空则使用官方默认。
///
[Url]
public string? Endpoint { get; set; }
///
/// 是否使用 HTTPS。
///
public bool UseHttps { get; set; } = true;
///
/// 直传或下载时默认有效期(分钟),未设置时使用全局安全配置。
///
[Range(1, 24 * 60)]
public int? SignedUrlExpirationMinutes { get; set; }
}