package com.ai.da.model.dto;

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

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("预先登入")
public class AccountPreLoginDTO {

    @NotBlank(message = "userName.cannot.be.empty")
    @ApiModelProperty("用户名")
    private String userName;

    /*新增字段*/
    @NotBlank(message = "email.cannot.be.empty")
    @ApiModelProperty("邮箱")
    private String email;

    @NotBlank(message = "password.cannot.be.empty")
    @ApiModelProperty("密码")
    private String password;

    @NotBlank(message = "operationType.cannot.be.empty")
    @ApiModelProperty("操作类型  LOGIN 注册  FORGET_PWD 忘记密码 BIND_MAILBOX 绑定邮箱")
    private String operationType;

    @ApiModelProperty("异常ip")
    private String ip;
}
