using System.ComponentModel.DataAnnotations; namespace TEAMModelBI.Models { /// /// 配置文件 /// public class SysConfig { //public string id { get; set; } /// /// 站点 /// [Required(ErrorMessage = "{0} 必须填写")] public string site { get; set; } /// /// 站点昵称 /// public string nickName { get; set; } /// /// 部门Id /// public long proDeptId { get; set; } /// /// 连接秘钥 /// public ClientKey clientKey { get; set; } /// /// 钉钉秘钥 /// public DDAuth dDAuth { get; set; } /// /// 数据库连接字串 /// public AzureClient azureClient { get; set; } } public class ClientKey { public string clientID { get; set; } public string clientSecret { get; set; } } public class DDAuth { public string agentId { get; set; } public string appKey { get; set; } public string appSecret { get; set; } } public class AzureClient { public string storage { get; set; } public string cosmos { get; set; } public string redis { get; set; } public string servicBus { get; set; } } }