using System.Threading; using System.Threading.Tasks; namespace Sanhe.Abp.Identity { public interface IUserSecurityCodeSender { /// /// 发送手机确认码 /// /// 手机号 /// 令牌 /// 模板号 /// /// Task SendPhoneConfirmedCodeAsync( string phone, string token, string template, // 传递模板号 CancellationToken cancellation = default); /// /// 发送邮箱确认码 /// /// 用户名 /// 邮箱 /// 令牌 /// /// Task SendEmailConfirmedCodeAsync( string userName, string email, string token, CancellationToken cancellation = default); } }