namespace Admin.Core.Common.Configs { /// /// 应用配置 /// public class AppConfig { /// /// Api地址,默认 http://*:8888 /// public string[] Urls { get; set; }// = new[]{ "http://*:8888" }; /// /// 跨域地址,默认 http://*:9999 /// public string[] CorUrls { get; set; }// = new[]{ "http://*:9999" }; /// /// Swagger文档 /// public bool Swagger { get; set; } = false; /// /// Aop配置 /// public AopConfig Aop { get; set; } = new AopConfig(); /// /// 日志配置 /// public LogConfig Log { get; set; } = new LogConfig(); /// /// 限流 /// public bool RateLimit { get; set; } = false; /// /// 验证码配置 /// public VarifyCodeConfig VarifyCode { get; set; } = new VarifyCodeConfig(); } /// /// Aop配置 /// public class AopConfig { /// /// 事物 /// public bool Transaction { get; set; } = true; } /// /// 日志配置 /// public class LogConfig { /// /// 操作日志 /// public bool Operation { get; set; } = true; } /// /// 验证码配置 /// public class VarifyCodeConfig { /// /// 启用 /// public bool Enable { get; set; } = true; /// /// 操作日志 /// public string[] Fonts { get; set; }// = new[] { "Times New Roman", "Verdana", "Arial", "Gungsuh", "Impact" }; } }