78 lines
2.4 KiB
C#
78 lines
2.4 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Collections.Specialized;
|
||
using System.Configuration;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
using MyCode.Project.Infrastructure.Common;
|
||
using MyCode.Project.Infrastructure.Constant;
|
||
|
||
namespace MyCode.Project.Domain.Config
|
||
{
|
||
public static class SystemConfig
|
||
{
|
||
/// <summary>
|
||
/// A数据库连接路径
|
||
/// </summary>
|
||
public static string ConnectionMasterStr = WebConfigUtils.GetConnectionStringsInfo("YunTongConn");
|
||
|
||
/// <summary>
|
||
/// B数据库链接对象
|
||
/// </summary>
|
||
public static string WMSConnectionStr =WebConfigUtils.GetConnectionStringsInfo("WMSConn");
|
||
|
||
/// <summary>
|
||
/// JWT的key
|
||
/// </summary>
|
||
public static string JwtKey = WebConfigUtils.GetAppSettingsInfo("JwtKey");
|
||
|
||
/// <summary>
|
||
/// 是否输出sql
|
||
/// </summary>
|
||
public static bool IfOutputSql = WebConfigUtils.GetAppSettingsInfo("OutputSql") == "1" ? true:false;
|
||
|
||
/// <summary>
|
||
/// 是否输出请求日志
|
||
/// </summary>
|
||
public static bool IfOutputRequstLog = WebConfigUtils.GetAppSettingsInfo("OutputRequstLog") == "1" ? true : false;
|
||
|
||
/// <summary>
|
||
/// Redis的地址
|
||
/// </summary>
|
||
public static string RedisAddress = WebConfigUtils.GetAppSettingsInfo("RedisAddress");
|
||
|
||
/// <summary>
|
||
/// Redis缓存前缀
|
||
/// </summary>
|
||
public static string CachePrefix = WebConfigUtils.GetAppSettingsInfo("CachePrefix");
|
||
|
||
/// <summary>
|
||
/// 区域加多一个前缀
|
||
/// </summary>
|
||
public static string ApiVersion = WebConfigUtils.GetAppSettingsInfo("ApiVersion");
|
||
|
||
/// <summary>
|
||
/// 钉钉的通知URL
|
||
/// </summary>
|
||
public static string DingDingApiUrl = WebConfigUtils.GetAppSettingsInfo("DingDingApiUrl");
|
||
|
||
/// <summary>
|
||
/// 当前环境1:生产环境 0:开发环境
|
||
/// </summary>
|
||
public static int Env = Convert.ToInt32(WebConfigUtils.GetAppSettingsInfo("Env"));
|
||
|
||
/// <summary>
|
||
/// 文件保存的路径
|
||
/// </summary>
|
||
public static string AppFilePath = WebConfigUtils.GetAppSettingsInfo("AppFilePath");
|
||
|
||
/// <summary>
|
||
/// WebSocket的地址
|
||
/// </summary>
|
||
public static string WebSocketUrl = WebConfigUtils.GetAppSettingsInfo("WebSocketUrl");
|
||
|
||
|
||
}
|
||
}
|