src/Framework/OSS/OSS.Abstractions/QiniuConfig.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System.ComponentModel;

namespace NetModular.Lib.OSS.Abstractions
{
    public class QiniuConfig
    {
        /// <summary>
        /// 访问Key
        /// </summary>
        public string AccessKey { get; set; }

        /// <summary>
        /// 密钥
        /// </summary>
        public string SecretKey { get; set; }

        /// <summary>
        /// 域名
        /// </summary>
        public string Domain { get; set; }

        /// <summary>
        /// 空间
        /// </summary>
        public string Bucket { get; set; }

        /// <summary>
        /// 存储区域
        /// </summary>
        public QiniuZone Zone { get; set; }

        /// <summary>
        /// 令牌有效期
        /// </summary>
        public int TokenExpires { get; set; } = 7200;

        public bool Check()
        {
            return AccessKey.NotNull() && SecretKey.NotNull() && Domain.NotNull();
        }
    }

    /// <summary>
    /// 七牛存储区域
    /// </summary>
    public enum QiniuZone
    {
        /// <summary>
        /// 华 东
        /// </summary>
        [Description("华 东")]
        ZONE_CN_East,
        /// <summary>
        /// 华 北
        /// </summary>
        [Description("华 北")]
        ZONE_CN_North,
        /// <summary>
        /// 华 南
        /// </summary>
后面还有 9 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。