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