package org.jeecg.modules.shop.user.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
public class UserLoginDTO {

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    @NotBlank(message = "Invalid email")
    @Email(message = "Invalid email")
    private String email;

    /**
     * 验证码
     */
    @NotBlank(message = "Invalid captcha")
    @ApiModelProperty(value = "验证码")
    private String captcha;
}
