package com.jeesharp.business.modules.member.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 发送邮件验证码请求
 *
 * @author jeesharp
 */
@Data
@Schema(description = "发送邮件验证码请求")
public class SendEmailCodeDTO {

    @Schema(description = "邮箱地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "user@example.com")
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;

    /**
     * 验证码场景
     */
    @Schema(description = "场景：LOGIN-登录、REGISTER-注册、RESET_PWD-重置密码、BIND-绑定邮箱",
            requiredMode = Schema.RequiredMode.REQUIRED, example = "LOGIN")
    @NotBlank(message = "场景不能为空")
    private String scene;
}
