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.
43 lines
1.1 KiB
43 lines
1.1 KiB
using MediatR;
|
|
using CellularManagement.Domain.Common;
|
|
|
|
namespace CellularManagement.Application.Features.Auth.Commands.SendVerificationCode;
|
|
|
|
/// <summary>
|
|
/// 发送验证码命令
|
|
/// 用于请求向指定邮箱发送验证码
|
|
/// </summary>
|
|
public sealed record SendVerificationCodeCommand : IRequest<OperationResult<SendVerificationCodeResponse>>
|
|
{
|
|
/// <summary>
|
|
/// 目标邮箱地址
|
|
/// </summary>
|
|
public string Email { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 图形验证码ID
|
|
/// </summary>
|
|
public string CaptchaId { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 图形验证码
|
|
/// </summary>
|
|
public string CaptchaCode { get; init; } = string.Empty;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 发送验证码响应
|
|
/// 包含验证码发送的结果信息
|
|
/// </summary>
|
|
public sealed record SendVerificationCodeResponse
|
|
{
|
|
/// <summary>
|
|
/// 是否发送成功
|
|
/// </summary>
|
|
public bool Success { get; init; }
|
|
|
|
/// <summary>
|
|
/// 验证码有效期(分钟)
|
|
/// </summary>
|
|
public int ExpirationMinutes { get; init; }
|
|
}
|