username@email.com
2024-03-05 bb4015670d520e2babf2bb558e02fe4de41d5f0b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/***********************************************************************
 *            Project: CoreCms
 *        ProjectName: 核心内容管理系统                                
 *                Web: https://www.corecms.net                      
 *             Author: 大灰灰                                          
 *              Email: jianweie@163.com                                
 *         CreateTime: 2021/1/31 21:45:10
 *        Description: 暂无
 ***********************************************************************/
 
 
namespace CoreCms.Net.Model.ViewModels.Options
{
    /// <summary>
    ///     存储配置转换对象
    /// </summary>
    public class FilesStorageOptions
    {
        /// <summary>
        ///     存储方式('LocalStorage','AliYunOSS','QCloudOSS')
        /// </summary>
        public string StorageType { get; set; } = "LocalStorage";
        /// <summary>
        ///     存储目录
        /// </summary>
        public string Path { get; set; } = "Upload";
        /// <summary>
        ///     账户标识(腾讯云)
        /// </summary>
        public string AccountId { get; set; }
 
        /// <summary>
        ///     存储桶地域(腾讯云)
        /// </summary>
        public string CosRegion { get; set; }
 
        /// <summary>
        ///     存储桶名称(腾讯云)
        /// </summary>
        public string TencentBucketName { get; set; }
 
        /// <summary>
        ///     存储桶名称(七牛云)
        /// </summary>
        public string QiNiuBucketName { get; set; }
 
        /// <summary>
        ///     授权账户
        /// </summary>
        public string AccessKeyId { get; set; }
 
        /// <summary>
        ///     授权密钥
        /// </summary>
        public string AccessKeySecret { get; set; }
 
        /// <summary>
        ///     节点
        /// </summary>
        public string Endpoint { get; set; }
 
        /// <summary>
        ///     桶名称
        /// </summary>
        public string BucketName { get; set; }
 
        /// <summary>
        ///     桶绑定域名
        /// </summary>
        public string BucketBindUrl { get; set; }
 
        /// <summary>
        ///     文件类型
        /// </summary>
        public string FileTypes { get; set; } = "gif,jpg,jpeg,png,bmp,xls,xlsx,doc,pdf,mp4,WebM,Ogv";
 
        /// <summary>
        ///     最大允许上传单个文件大小(M)
        /// </summary>
        public int MaxSize { get; set; } = 20;
    }
}