You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using NPin.Framework.Upms.Domain.Shared.Enums;
|
|
|
|
|
|
|
|
|
|
namespace NPin.Framework.Upms.Domain.Shared.Model;
|
|
|
|
|
|
|
|
|
|
public class SmsConfigModel
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否启用(总控)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Enabled { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设定集
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Dictionary<SmsTypeEnum, SmsSettings> Settings { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class SmsSettings
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否启用
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Enabled { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 服务提供商
|
|
|
|
|
/// </summary>
|
|
|
|
|
public SmsProviderEnum Provider { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 区域
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Region { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 短信访问 端点
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Endpoint { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 短信签名名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string SignName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 短信模板Code
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string TemplateCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 过期时间,单位:秒
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Expires { get; set; }
|
|
|
|
|
}
|