using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Models { public class ConfigEntity { /// /// 主要数据库 /// public string Connection => this.DBTYPE == 1 ? this.DefaultConnection:this.MYSQL; /// /// 日志数据库 /// public string Connection_log => this.DBTYPE == 1 ? this.LogDB:this.MYSQL_LOG; public static ConfigEntity Instance = new(); /// /// 起始时间 数据库查询的时间起始范围 小于这个范围就不会查询 /// public DateTime STARTTIME { get; set; } = DateTime.Parse("2022-03-25 00:00:01"); /// /// ftp 路径 /// public string FTPPATH { get; set; } = string.Empty; /// /// ftp 账号 /// public string FTPUSERNAME { get; set; } = string.Empty; /// /// ftp 密码 /// public string FTPPASSWORD { get; set; } = string.Empty; /// /// ftp IP /// public string FTPIP { get; set; } = string.Empty; /// /// 阿里数据查询范围 /// public int ASLS { get; set; } = 30; /// /// 查询间隔 /// public int NOW_S { get; set; } = 1; /// /// 巫工数据库连接字符串 /// public string OtherDB { get; set; } = string.Empty; /// /// debug专属数据库连接字符串 /// public string DEBUGGER_DB { get; set; } = string.Empty; /// /// Engineering_DB数据库连接字符串 /// public string Engineering_DB { get; set; } = string.Empty; /// /// 数据库类型 1 sql server 2 mysql /// public int DBTYPE { get; set; } = 1; /// /// mysql数据库 /// public string MYSQL { get; set; } /// /// mysql数据库 /// public string MYSQL_LOG { get; set; } /// /// 主要数据库 /// public string DefaultConnection { get; set; } /// /// 巫工接口 /// public string url_api { get; set; } public string url_key { get; set; } /// /// APPID /// public int Appid { get; set; } /// /// Redis /// public string Redis { get; set; } /// /// 日志数据库 /// public string LogDB { get; set; } /// /// 登录接口 /// public string Url { get; set; } /// /// 是否准许多个地方同时间登录 /// public bool IsMore { get; set; } /// /// RUCS端口 tcp通讯使用 客户端 端口 /// public int RUCS_PROT { get; set; } = 8558; /// /// RUCSip tcp通讯使用 客户端 ip /// public string RUCS_IP { get; set; } = "47.119.147.104"; /// /// 是否前期开发测试 /// public bool DEV { get; set; } /// /// client tcp通讯使用 连接 其他TCP 端口 未使用 /// public int CLIENT_PROT { get; set; } = 8028; /// /// server tcp通讯使用 作为主机 供的客户端使用 端口 使用 /// public int SERVER_PROT { get; set; } = 1221; } public class JwtConst { public static JwtConst Instance = new(); /// /// 密钥 /// public string SecurityKey { get; set; } public string Domain { get; set; } } }