namespace TakeoutSaaS.Module.Sms.Models; /// /// 短信发送请求。 /// public sealed class SmsSendRequest { /// /// 初始化短信发送请求。 /// /// 目标手机号码(含国家码,如 +86xxxxxxxxxxx)。 /// 模版编号。 /// 模版变量。 /// 短信签名。 public SmsSendRequest(string phoneNumber, string templateCode, IDictionary variables, string? signName = null) { PhoneNumber = phoneNumber; TemplateCode = templateCode; Variables = new Dictionary(variables); SignName = signName; } /// /// 目标手机号。 /// public string PhoneNumber { get; } /// /// 模版编号。 /// public string TemplateCode { get; } /// /// 模版变量。 /// public IReadOnlyDictionary Variables { get; } /// /// 可选的签名。 /// public string? SignName { get; } }