You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

67 lines
1.7 KiB

namespace Wood.Util
{
/// <summary>
/// 系统配置
/// </summary>
public class SystemConfig
{
/// <summary>
/// 是否开启数据库初始化
/// </summary>
public bool EnableInitDb { get; set; }
/// <summary>
/// Snow Flake Worker Id
/// 雪花id 节点序号
/// </summary>
public int SnowFlakeWorkerId { get; set; }
/// <summary>
/// 允许跨域的站点
/// </summary>
public string AllowCorsSite { get; set; } = "";
/// <summary>
/// 数据库类型
/// </summary>
public string DBProvider { get; set; } = "";
/// <summary>
/// 数据库字符串
/// </summary>
public string DBConnectionString { get; set; } = "";
/// <summary>
/// 数据库超时间(秒)
/// </summary>
public int DBCommandTimeout { get; set; }
/// <summary>
/// 数据库备份路径
/// </summary>
public string DBBackup { get; set; } = "";
/// <summary>
/// 缓存方式
/// </summary>
public string CacheProvider { get; set; } = "";
/// <summary>
/// redis链接字符串
/// </summary>
public string RedisConnectionString { get; set; } = "";
/// <summary>
/// 是否开启差异化日志
/// </summary>
public bool DBEnableDiffLog { get; set; }
/// <summary>
/// 是否执行自动job
/// </summary>
public bool RunAutoJob { get; set; }
/// <summary>
/// 系统保存的日志天数
/// </summary>
public int LogDays { get; set; } = 90;
public string CustomerDb { get; set; } = "";
}
}