package com.ema.admin.modules.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@ApiModel(value = "SendEmailCodeVo", description = "发送邮箱验证码请求参数")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SendEmailCodeVo implements Serializable {

    @ApiModelProperty(value = "邮箱地址", required = true)
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;

    @ApiModelProperty(value = "模板Code：注册 EMAIL_REGISTER_CODE、重置密码 EMAIL_RESET_PWD_CODE", required = true)
    @NotBlank(message = "模板Code不能为空")
    private String code;

}
