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.2 KiB
37 lines
1.2 KiB
|
3 months ago
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Admins.Auth.Input;
|
||
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Admins.Auth.Output;
|
||
|
|
using ATS.NonCustodial.Domain.Shared.Enums;
|
||
|
|
using ATS.NonCustodial.Shared.Captcha.Dto;
|
||
|
|
using ATS.NonCustodial.Shared.Common.Dtos;
|
||
|
|
using ATS.NonCustodial.Shared.Common.UnifiedResults;
|
||
|
|
|
||
|
|
namespace ATS.NonCustodial.Application.Contracts.Interfaces.Admins.SMS
|
||
|
|
{
|
||
|
|
public interface ISMSService
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 发送验证码
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="phone"></param>
|
||
|
|
/// <returns></returns>
|
||
|
|
Task<IResultOutput> SendCheckCodeSMS(string phone, string ipAddress = "", string type = "CheckCode");
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 校验验证码
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="phoneNumber"></param>
|
||
|
|
/// <param name="code"></param>
|
||
|
|
/// <param name="type"></param>
|
||
|
|
/// <returns></returns>
|
||
|
|
Task<bool> CheckCodeAsync(string phoneNumber, string code, string type = "default");
|
||
|
|
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 发送前校验
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="phone"></param>
|
||
|
|
/// <returns></returns>
|
||
|
|
Task<bool> CanSendCodeAsync(string phone);
|
||
|
|
}
|
||
|
|
}
|