|
|
using Common.Data;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Text;
|
|
|
|
|
|
namespace Common.Entity
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 站点配置
|
|
|
/// </summary>
|
|
|
public class WebConfig
|
|
|
{
|
|
|
|
|
|
#region Email服务器配置
|
|
|
|
|
|
#endregion
|
|
|
/// <summary>
|
|
|
/// 钉钉机器人推送地址 预警发送地址
|
|
|
/// </summary>
|
|
|
public string ServerWarnApiUrl { get; set; }
|
|
|
/// <summary>
|
|
|
/// 重点错预警URl
|
|
|
/// </summary>
|
|
|
public string ServerWarnApiUrlErr { get; set; }
|
|
|
/// <summary>
|
|
|
/// 关键字
|
|
|
/// </summary>
|
|
|
public string ServerWarnKey { get; set; }
|
|
|
/// <summary>
|
|
|
/// 授权认证服务器url
|
|
|
/// </summary>
|
|
|
public string IdentServerUrl { get; set; }
|
|
|
/// <summary>
|
|
|
/// 站点ID
|
|
|
/// </summary>
|
|
|
public int WebId { get; set; } = 0;
|
|
|
/// <summary>
|
|
|
/// 是否是开发环境
|
|
|
/// </summary>
|
|
|
public bool IsDev { get; set; } = false;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 站点名称
|
|
|
/// </summary>
|
|
|
public string WebName { get; set; } = "";
|
|
|
/// <summary>
|
|
|
/// web站点跟目录
|
|
|
/// </summary>
|
|
|
public string WebHostUrl { get; set; } = "";
|
|
|
|
|
|
/// <summary>
|
|
|
/// 站点所在城市 省|市|区
|
|
|
/// </summary>
|
|
|
public string Area { get; set; } = "";
|
|
|
|
|
|
/// <summary>
|
|
|
///RedisUrl地址
|
|
|
/// </summary>
|
|
|
public string Redis { get; set; } = "";
|
|
|
/// <summary>
|
|
|
/// reids DB 编号
|
|
|
/// </summary>
|
|
|
public int RedisDb { get; set; } = 0;
|
|
|
/// <summary>
|
|
|
/// RabbitMQ Server
|
|
|
/// </summary>
|
|
|
public string Rbmq_Host { get; set; } = "";
|
|
|
/// <summary>
|
|
|
///RabbitMQ 用户名
|
|
|
/// </summary>
|
|
|
public string Rbmq_UserName { get; set; } = "";
|
|
|
/// <summary>
|
|
|
///RabbitMQ 密码
|
|
|
/// </summary>
|
|
|
public string Rbmq_Password{ get; set; } = "";
|
|
|
/// <summary>
|
|
|
/// RabbitMQ 持久化数据库链接
|
|
|
/// </summary>
|
|
|
public string Rbmq_Sqlhost { get; set; } = "";
|
|
|
/// <summary>
|
|
|
/// 默认数据库连接名称
|
|
|
/// </summary>
|
|
|
public string ConnName { get; set; } = "sysdb";
|
|
|
/// <summary>
|
|
|
/// 数据库连接队列
|
|
|
/// </summary>
|
|
|
public List<DataConnEntity> DataConnList { get; set; } = new List<DataConnEntity>();
|
|
|
/// <summary>
|
|
|
/// 配置数据列表
|
|
|
/// </summary>
|
|
|
public Dictionary<string,string> ConfigList{ get; set; }
|
|
|
/// <summary>
|
|
|
/// 配置数的初始化状态
|
|
|
/// </summary>
|
|
|
public bool ConfigInitStatus { get; set; } = false;
|
|
|
|
|
|
public int ConfigInitcount { get; set; }
|
|
|
/// <summary>
|
|
|
/// Des加密解密密钥16位
|
|
|
/// </summary>
|
|
|
public string DesKey { get; set; } = "";
|
|
|
/// <summary>
|
|
|
/// 最大数量
|
|
|
/// </summary>
|
|
|
public int Maxcount { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 登录超时时间
|
|
|
/// </summary>
|
|
|
public int LoginAutoOutTime { get; set; } = 10;
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public int ShopPower { get; set; } = 2;
|
|
|
|
|
|
|
|
|
public string DapperDbString { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string requesterDea { get; set; }
|
|
|
|
|
|
#region jwt认证配置
|
|
|
/// <summary>
|
|
|
/// jwt发行者
|
|
|
/// </summary>
|
|
|
public string jwt_Issuer { get; set; } = "";
|
|
|
/// <summary>
|
|
|
/// jwt订阅者
|
|
|
/// </summary>
|
|
|
public string jwt_Audience { get; set; } = "";
|
|
|
/// <summary>
|
|
|
/// jwt过期的时间间隔分钟
|
|
|
/// </summary>
|
|
|
public int jwt_Expiration { get; set; } =1440;
|
|
|
|
|
|
/// <summary>
|
|
|
/// jwt私钥密钥
|
|
|
/// </summary>
|
|
|
public string jwt_Secretkey { get; set; } = "";
|
|
|
|
|
|
/// <summary>
|
|
|
/// 系统脏字过滤关键字列表中间用,或|间隔
|
|
|
/// </summary>
|
|
|
public string StrFilte { get; set; } = "";
|
|
|
|
|
|
/// <summary>
|
|
|
/// 系统脏字过滤关键字列表
|
|
|
/// </summary>
|
|
|
public string[] FilteArray { get {
|
|
|
return StrFilte.IndexOf(',') >= 0?StrFilte.Split(','): StrFilte.Split('|');
|
|
|
|
|
|
} }
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
#region 缓存配置
|
|
|
/// <summary>
|
|
|
/// 是否开启缓存
|
|
|
/// </summary>
|
|
|
public bool cache_open { get; set; } = false;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 统一的缓存短时间 单位秒
|
|
|
/// </summary>
|
|
|
public int cache_time { get; set; } = 60;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 统一的缓存长时间 单位秒
|
|
|
/// </summary>
|
|
|
public int cache_timemax { get; set; } = 600;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 是否启动redis缓存,否则为内存缓存
|
|
|
/// </summary>
|
|
|
public bool cache_IsRedis { get; set; } = false;
|
|
|
/// <summary>
|
|
|
/// redis URl
|
|
|
/// </summary>
|
|
|
public string cache_Redis_Host { get; set; } = "";
|
|
|
/// <summary>
|
|
|
/// redis端口号
|
|
|
/// </summary>
|
|
|
public int cache_redis_Poit { get; set; } = 6379;
|
|
|
/// <summary>
|
|
|
/// redis密码
|
|
|
/// </summary>
|
|
|
public string cache_redis_Passwrod { get; set; } = "";
|
|
|
/// <summary>
|
|
|
/// 使用的redis InstanceName
|
|
|
/// </summary>
|
|
|
public string cache_Redis_InstanceName { get; set; } = "web";
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|