using JNPF.DependencyInjection; using JNPF.JsonSerialization; using Newtonsoft.Json; namespace JNPF.Systems.Entitys.Dto.SysConfig; /// /// 系统配置输出. /// [SuppressSniffer] public class SysConfigOutput { /// /// 系统名称. /// public string sysName { get; set; } /// /// 系统描述. /// public string sysDescription { get; set; } /// /// 系统版本. /// public string sysVersion { get; set; } /// /// 版权信息. /// public string copyright { get; set; } /// /// 公司名称. /// public string companyName { get; set; } /// /// 公司简称. /// public string companyCode { get; set; } /// /// 公司地址. /// public string companyAddress { get; set; } /// /// 公司法人. /// public string companyContacts { get; set; } /// /// 公司电话. /// public string companyTelePhone { get; set; } /// /// 公司邮箱. /// public string companyEmail { get; set; } /// /// 单一登录方式 (1:后登录踢出先登录 2:同时登录). /// public int singleLogin { get; set; } /// /// 超出登出. /// public string tokenTimeout { get; set; } /// /// 是否开启上次登录提醒. /// [JsonConverter(typeof(BoolJsonConverter))] public bool lastLoginTimeSwitch { get; set; } /// /// 是否开启白名单验证. /// [JsonConverter(typeof(BoolJsonConverter))] public bool whitelistSwitch { get; set; } /// /// 白名单. /// public string whiteListIp { get; set; } /// /// POP3服务主机地址. /// public string emailPop3Host { get; set; } /// /// POP3服务端口. /// public int emailPop3Port { get; set; } /// /// SMTP服务主机地址. /// public string emailSmtpHost { get; set; } /// /// SMTP服务主端口. /// public int emailSmtpPort { get; set; } /// /// 邮件显示名称. /// public string emailSenderName { get; set; } /// /// 邮箱账户. /// public string emailAccount { get; set; } /// /// 邮箱密码. /// public string emailPassword { get; set; } /// /// 是否开启SSL服务登录. /// [JsonConverter(typeof(BoolJsonConverter))] public bool emailSsl { get; set; } /// /// 授权密钥. /// public string registerKey { get; set; } /// /// 最后登录时间. /// public string lastLoginTime { get; set; } /// /// 分页数. /// public string pageSize { get; set; } /// /// 系统主题. /// public string sysTheme { get; set; } /// /// 厂商. /// public string smsCompany { get; set; } /// /// 签名内容. /// public string smsSignName { get; set; } /// /// sms用户编号. /// public string smsKeyId { get; set; } /// /// sms密钥. /// public string smsKeySecret { get; set; } /// /// 模板编号. /// public string smsTemplateId { get; set; } /// /// 应用编号. /// public string smsAppId { get; set; } /// /// 企业号Id. /// public string qyhCorpId { get; set; } /// /// 应用凭证. /// public string qyhAgentId { get; set; } /// /// 凭证密钥. /// public string qyhAgentSecret { get; set; } /// /// 同步密钥. /// public string qyhCorpSecret { get; set; } /// /// 启用同步钉钉组织(0:不启用,1:启用). /// [JsonConverter(typeof(BoolJsonConverter))] public bool qyhIsSynOrg { get; set; } /// /// 启用同步钉钉用户(0:不启用,1:启用). /// [JsonConverter(typeof(BoolJsonConverter))] public bool qyhIsSynUser { get; set; } /// /// 企业号Id. /// public string dingSynAppKey { get; set; } /// /// 凭证密钥. /// public string dingSynAppSecret { get; set; } /// /// 应用凭证. /// public string dingAgentId { get; set; } /// /// 启用同步钉钉组织(0:不启用,1:启用). /// [JsonConverter(typeof(BoolJsonConverter))] public bool dingSynIsSynOrg { get; set; } /// /// 启用同步钉钉用户(0:不启用,1:启用). /// [JsonConverter(typeof(BoolJsonConverter))] public bool dingSynIsSynUser { get; set; } /// /// 错误密码次数. /// public int passwordErrorsNumber { get; set; } = 6; /// /// 错误策略(1:账号锁定,2:延时登录). /// public int lockType { get; set; } = 0; /// /// 延时登录时间(分钟). /// public int lockTime { get; set; } = 10; /// /// 是否开启验证码(0:不启用,1:启用). /// [JsonConverter(typeof(BoolJsonConverter))] public bool enableVerificationCode { get; set; } /// /// 验证码位数. /// public int verificationCodeNumber { get; set; } = 3; /// /// 访问域名. /// public string domain { get; set; } = "sms.tencentcloudapi.com"; /// /// 支持地域. /// public string region { get; set; } = "ap-guangzhou"; /// /// 短信版本. /// public string version { get; set; } /// /// 登录图标. /// public string loginIcon { get; set; } /// /// 导航图标. /// public string navigationIcon { get; set; } /// /// logo图标. /// public string logoIcon { get; set; } /// /// App图标. /// public string appIcon { get; set; } #region 短信 /// /// 阿里云AccessKey. /// public string aliAccessKey { get; set; } /// /// 阿里云Secret. /// public string aliSecret { get; set; } /// /// 腾讯云SecretId. /// public string tencentSecretId { get; set; } /// /// 腾讯云SecretKey. /// public string tencentSecretKey { get; set; } /// /// 腾讯云AppId. /// public string tencentAppId { get; set; } /// /// 腾讯云AppKey. /// public string tencentAppKey { get; set; } #endregion /// /// 审批链接时效性. /// public int linkTime { get; set; } /// /// 审批链接被点击后失效. /// public int isClick { get; set; } /// /// 链接点击几次后失效. /// public int unClickNum { get; set; } #region 密码策略 /// /// 密码定期更新开关. /// public int passwordIsUpdatedRegularly { get; set; } /// /// 更新周期. /// public int updateCycle { get; set; } /// /// 提前N天提醒更新. /// public int updateInAdvance { get; set; } /// /// 密码强度限制开关. /// public int passwordStrengthLimit { get; set; } /// /// 最小长度开关. /// public int passwordLengthMin { get; set; } /// /// 密码最小长度限制. /// public int passwordLengthMinNumber { get; set; } /// /// 是否包含数字. /// public int containsNumbers { get; set; } /// /// 是否包含小写字母. /// public int includeLowercaseLetters { get; set; } /// /// 是否包含大写字母. /// public int includeUppercaseLetters { get; set; } /// /// 是否包含字符. /// public int containsCharacters { get; set; } /// /// 是否禁用旧密码开关. /// public int disableOldPassword { get; set; } /// /// 禁用旧密码个数. /// public int disableTheNumberOfOldPasswords { get; set; } /// /// 初始密码强制修改开关. /// public int mandatoryModificationOfInitialPassword { get; set; } #endregion }