namespace Zxd.Domain.Config
{
///
/// 系统参数
///
public class SystemConfig
{
public string Appid { get; set; }
public string AppSecret { get; set; }
public string SsoUrl { get; set; }
public string SsoOrganizationUrl { get; set; }
public string ZXDCoreUrl { get; set; }
///
/// 销售线索URL
///
public string? SalesLeadUrl { get; set; }
///
/// CRM号码加密key(clientKey)
///
public string? CRMClientKey { get; set; }
///
/// 推送部门编码
///
public string? DataClientCode { get; set; }
///
/// 深海捷固定坐席
///
public string? Shj { get; set; }
///
/// 客户端密钥
///
public List? ClientKey { get; set; }
///
///
///
public string DataSyncApiUrl { get; set; }
///
/// 短信注册信息
///
public string SoftRegisterMsg { get; set; }
public string SsoTokenUrl { get; set; }
public string GetSsoOrganizationUrl()
{
return $"{SsoUrl}{SsoOrganizationUrl}";
}
public string GetSsoTokenUrl()
{
return $"{SsoUrl}{SsoTokenUrl}";
}
///
/// 资源系统ip地址
///
public string CmsUrl { get; set; }
public string[] ClearCacheUrls { get; set; }
public string GetAccessKey(string id)
{
return ClientKey?.First(x => x.Id == id).AccessKey ?? "";
}
}
}