namespace Infrastructure
{
///
/// 获取配置文件POCO实体类
///
public class OptionsSetting
{
public static string ConnAdmin = "conn_zrAdmin";
public static string ConnDbType = "conn_zrAdmin_type";
public static string ConnBus = "conn_bus";
public static string ConnBusDbType = "conn_bus_type";
public static string DbKey = "DbKey";
public string Redis { get; set; }
public string Database { get; set; }
///
/// 是否演示模式
///
public bool DemoMode { get; set; }
public MailOptions MailOptions { get; set; }
public Upload Upload { get; set; }
public ALYUN_OCS ALYUN_OCS { get; set; }
}
///
/// 发送邮件数据配置
///
public class MailOptions
{
public string From { get; set; }
public string Password { get; set; }
public string Smtp { get; set; }
public int Port { get; set; }
}
///
/// 上传
///
public class Upload
{
public string UploadDirectory { get; set; }
public string UploadUrl { get; set; }
}
///
/// 阿里云存储
///
public class ALYUN_OCS
{
public string REGIONID { get; set; }
public string KEY { get; set; }
public string SECRET { get; set; }
}
}