feat: finalize core modules and gateway
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using TakeoutSaaS.Application.Sms.Contracts;
|
||||
|
||||
namespace TakeoutSaaS.Application.Sms.Abstractions;
|
||||
|
||||
/// <summary>
|
||||
/// 短信验证码服务抽象。
|
||||
/// </summary>
|
||||
public interface IVerificationCodeService
|
||||
{
|
||||
/// <summary>
|
||||
/// 发送验证码。
|
||||
/// </summary>
|
||||
Task<SendVerificationCodeResponse> SendAsync(SendVerificationCodeRequest request, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 校验验证码。
|
||||
/// </summary>
|
||||
Task<bool> VerifyAsync(VerifyVerificationCodeRequest request, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user