using System.ComponentModel.DataAnnotations; namespace TakeoutSaaS.Module.Storage.Options; /// /// 阿里云 OSS 访问配置。 /// public sealed class AliyunOssOptions { /// /// 访问密钥 ID。 /// [Required] public string AccessKeyId { get; set; } = string.Empty; /// /// 访问密钥 Secret。 /// [Required] public string AccessKeySecret { get; set; } = string.Empty; /// /// Endpoint,如 https://oss-cn-hangzhou.aliyuncs.com。 /// [Required] [Url] public string Endpoint { get; set; } = string.Empty; /// /// 目标存储桶名称。 /// [Required] public string Bucket { get; set; } = string.Empty; /// /// CDN 加速域名(可选)。 /// [Url] public string? CdnBaseUrl { get; set; } /// /// 是否默认使用 HTTPS。 /// public bool UseHttps { get; set; } = true; }