You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
3 years ago
|
using System.Threading;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Sanhe.Abp.Identity
|
||
|
{
|
||
|
public interface IUserSecurityCodeSender
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 发送手机确认码
|
||
|
/// </summary>
|
||
|
/// <param name="phone">手机号</param>
|
||
|
/// <param name="token">令牌</param>
|
||
|
/// <param name="template">模板号</param>
|
||
|
/// <param name="cancellation"></param>
|
||
|
/// <returns></returns>
|
||
|
Task SendPhoneConfirmedCodeAsync(
|
||
|
string phone,
|
||
|
string token,
|
||
|
string template, // 传递模板号
|
||
|
CancellationToken cancellation = default);
|
||
|
|
||
|
/// <summary>
|
||
|
/// 发送邮箱确认码
|
||
|
/// </summary>
|
||
|
/// <param name="userName">用户名</param>
|
||
|
/// <param name="email">邮箱</param>
|
||
|
/// <param name="token">令牌</param>
|
||
|
/// <param name="cancellation"></param>
|
||
|
/// <returns></returns>
|
||
|
Task SendEmailConfirmedCodeAsync(
|
||
|
string userName,
|
||
|
string email,
|
||
|
string token,
|
||
|
CancellationToken cancellation = default);
|
||
|
}
|
||
|
}
|