// 大名科技(天津)有限公司版权所有 电话:18020030720 QQ:515096995 // // 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证 using OnceMi.AspNetCore.OSS; namespace Admin.NET.Core; /// /// 文件上传配置选项 /// public sealed class UploadOptions : IConfigurableOptions { /// /// 路径 /// public string Path { get; set; } /// /// 大小 /// public long MaxSize { get; set; } /// /// 上传格式 /// public List ContentType { get; set; } /// /// 启用文件MD5验证 /// /// 防止重复上传 public bool EnableMd5 { get; set; } } /// /// 对象存储配置选项 /// public sealed class OSSProviderOptions : OSSOptions, IConfigurableOptions { /// /// 是否启用OSS存储 /// public bool IsEnable { get; set; } /// /// 自定义桶名称 不能直接使用Provider来替代桶名称 /// 例:阿里云 1.只能包括小写字母,数字,短横线(-)2.必须以小写字母或者数字开头 3.长度必须在3-63字节之间 /// public string Bucket { get; set; } }