package com.qnfhq.modules.user.dto;


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

@Data
public class SendEmailCodeDTO {

    @Schema(title = "验证码类型")
    @NotBlank(message="{NotBlank.codeType}")//验证码类型不能空
    private String codeType;

    @Schema(title = "邮箱")
    @Email(message = "{Email.format.err}")//邮箱格式不正确
    @NotBlank(message="{NotBlank.email}")//邮箱不能为空
    private String email;


}
