20 lines
538 B
C#
20 lines
538 B
C#
|
|
namespace LMS.Repository.FileUpload;
|
|||
|
|
public class QiniuSettings
|
|||
|
|
{
|
|||
|
|
public string AccessKey { get; set; }
|
|||
|
|
public string SecretKey { get; set; }
|
|||
|
|
public string BucketName { get; set; }
|
|||
|
|
public string Domain { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 删除时间 天数 没有值 则不删除
|
|||
|
|
/// </summary>
|
|||
|
|
public int? DeleteDay { get; set; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public class FileUploadSettings
|
|||
|
|
{
|
|||
|
|
public long MaxFileSize { get; set; } = 3 * 1024 * 1024; // 5MB
|
|||
|
|
public List<string> AllowedContentTypes { get; set; } = new();
|
|||
|
|
}
|