177 lines
4.2 KiB
C#
177 lines
4.2 KiB
C#
namespace Zxd.Domain.Config
|
|
{
|
|
/// <summary>
|
|
/// 系统参数
|
|
/// </summary>
|
|
public class SystemConfig
|
|
{
|
|
public List<App> Apps { get; set; }
|
|
|
|
public string Appid { get; set; }
|
|
|
|
public string AppSecret { get; set; }
|
|
|
|
public string SsoUrl { get; set; }
|
|
public string ZxdCroeUrl { get; set; }
|
|
|
|
public string SsoOrganizationUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 销售线索URL
|
|
/// </summary>
|
|
public string? SalesLeadUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// CRM号码加密key(clientKey)
|
|
/// </summary>
|
|
public string? CRMClientKey { get; set; }
|
|
|
|
/// <summary>
|
|
/// 推送部门编码
|
|
/// </summary>
|
|
|
|
public string? DataClientCode { get; set; }
|
|
|
|
public string WeworkSendUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 深海捷固定坐席
|
|
/// </summary>
|
|
public string? Shj { get; set; }
|
|
|
|
/// <summary>
|
|
/// 客户端密钥
|
|
/// </summary>
|
|
public List<ClientKey>? ClientKey { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
|
|
public string DataSyncApiUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 短信注册信息
|
|
/// </summary>
|
|
public string SoftRegisterMsg { get; set; }
|
|
|
|
public string SsoTokenUrl { get; set; }
|
|
|
|
public string CrmBaseUrl { get; set; }
|
|
|
|
public string AddStandardProduct { get; set; }
|
|
|
|
public string AddStandardPackage { get; set; }
|
|
|
|
public string AddVirtualProduct { get; set; }
|
|
|
|
public string AddVirtualPackage { get; set; }
|
|
public string ActiveProduct { get; set; }
|
|
public string ActivePackage { get; set; }
|
|
public string UserGroupList { get; set; }
|
|
public string GroupUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 数据中台
|
|
/// </summary>
|
|
public string BdMarkting { get; set; }
|
|
|
|
public string KfUserCount { get; set; }
|
|
|
|
|
|
public string UsercenterUrl { get; set; }
|
|
|
|
public string GetAddStandardProduct()
|
|
{
|
|
return $"{CrmBaseUrl}{AddStandardProduct}";
|
|
}
|
|
|
|
public string GetActiveProduct()
|
|
{
|
|
return $"{CrmBaseUrl}{ActiveProduct}";
|
|
}
|
|
|
|
public string GetUserGroupList()
|
|
{
|
|
return $"{GroupUrl}{UserGroupList}";
|
|
}
|
|
|
|
public string GetKFSourceCount()
|
|
{
|
|
return $"{BdMarkting}{KfUserCount}";
|
|
}
|
|
|
|
public string GetActivePackage()
|
|
{
|
|
return $"{CrmBaseUrl}{ActivePackage}";
|
|
}
|
|
|
|
public string GetAddStandardPackage()
|
|
{
|
|
return $"{CrmBaseUrl}{AddStandardPackage}";
|
|
}
|
|
|
|
public string GetAddVirtualProduct()
|
|
{
|
|
return $"{CrmBaseUrl}{AddVirtualProduct}";
|
|
}
|
|
|
|
public string GetAddVirtualPackage()
|
|
{
|
|
return $"{CrmBaseUrl}{AddVirtualPackage}";
|
|
}
|
|
|
|
public string CrmCoreUrl { get; set; }
|
|
|
|
public string GetSsoOrganizationUrl()
|
|
{
|
|
return $"{SsoUrl}{SsoOrganizationUrl}";
|
|
}
|
|
public string GetZxdCroeUrl() {
|
|
return $"{ZxdCroeUrl}/Api/Deptment/Depts";
|
|
}
|
|
public string GetSsoTokenUrl()
|
|
{
|
|
return $"{SsoUrl}{SsoTokenUrl}";
|
|
}
|
|
|
|
/// <summary>
|
|
/// 资源系统ip地址
|
|
/// </summary>
|
|
public string CmsUrl { get; set; }
|
|
|
|
public string[] ClearCacheUrls { get; set; }
|
|
|
|
public string GetAccessKey(string id)
|
|
{
|
|
return ClientKey?.First(x => x.Id == id).AccessKey ?? "";
|
|
}
|
|
|
|
public string GetUserList()
|
|
{
|
|
return $"{UsercenterUrl}usercenter/cgi/getUserList";
|
|
}
|
|
}
|
|
|
|
public class App
|
|
{
|
|
public List<decimal> Deptids { get; set; }
|
|
|
|
public string AppName { get; set; }
|
|
|
|
public string Appid { get; set; }
|
|
|
|
public string AppSecret { get; set; }
|
|
|
|
public string CrmUrl { get; set; }
|
|
}
|
|
|
|
public class PayCallbackConfig
|
|
{
|
|
public string AppId { get; set; }
|
|
|
|
public string Secret { get; set; }
|
|
|
|
public string PushUrl { get; set; }
|
|
}
|
|
} |