namespace Admin.Core.Common.Configs { /// /// 应用配置 /// public class AppConfig { /// /// Api地址,默认 http://*:8888 /// public string Urls { get; set; } = "http://*:8888"; /// /// 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; } = true; /// /// 验证码配置 /// 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 Enabled { get; set; } = true; /// /// 操作日志 /// public string[] Font { get; set; } = { "Times New Roman", "Verdana", "Arial", "Gungsuh", "Impact" }; } }