46 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Furion.ConfigurableOptions;
using Microsoft.Extensions.Configuration;
namespace YD_Event.Core.Options;
/// <summary>
/// 短信配置选项
/// </summary>
[OptionsSettings("ALiYunSMS")]
public class SmsOptions : IConfigurableOptions
{
/// <summary>
/// AccessKeyId
/// </summary>
public string AccessKeyId { get; set; }
/// <summary>
/// AccessKeySecret
/// </summary>
public string AccessKeySecret { get; set; }
/// <summary>
/// 短信签名
/// </summary>
[ConfigurationKeyName("Sign")]
public string SignName { get; set; }
/// <summary>
/// 验证码模板Code
/// </summary>
[ConfigurationKeyName("Template")]
public string VerificationCodeTemplateCode { get; set; }
/// <summary>
/// 检录通知模板Code;order 支持单个场次或“1、3、4、5”场次列表。
/// current 参数格式为“{项目名称}第{x}场次”;未配置时不发送检录短信。
/// </summary>
[ConfigurationKeyName("CheckinNoticeTemplate")]
public string? CheckinNoticeTemplateCode { get; set; }
/// <summary>
/// 短信API Endpoint
/// </summary>
public string Endpoint { get; set; } = "dysmsapi.aliyuncs.com";
}