ZrAdminNetCore/Infrastructure/OptionsSetting.cs
2021-09-19 20:50:49 +08:00

59 lines
1.5 KiB
C#

namespace Infrastructure
{
/// <summary>
/// 获取配置文件POCO实体类
/// </summary>
public class OptionsSetting
{
public static string ConnAdmin = "conn_zrAdmin";
public static string DbType = "conn_admin_Type";
public static string DbKey = "DbKey";
public string Conn_Admin { get; set; }
public string AppName { get; set; }
/// <summary>
/// 主库
/// </summary>
public string Master { get; set; }
public string Redis { get; set; }
public string Database { get; set; }
/// <summary>
/// 是否演示模式
/// </summary>
public bool DemoMode { get; set; }
public MailOptions MailOptions { get; set; }
public Upload Upload { get; set; }
public ALYUN_OCS ALYUN_OCS { get; set; }
}
/// <summary>
/// 发送邮件数据配置
/// </summary>
public class MailOptions
{
public string From { get; set; }
public string Password { get; set; }
public string Host { get; set; }
public int Port { get; set; }
}
/// <summary>
/// 上传
/// </summary>
public class Upload
{
public string UploadDirectory { get; set; }
public string UploadUrl { get; set; }
}
/// <summary>
/// 阿里云存储
/// </summary>
public class ALYUN_OCS
{
public string REGIONID { get; set; }
public string KEY { get; set; }
public string SECRET { get; set; }
}
}