package com.ai.da.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;

@Data
@Schema(description = "预先登入")
public class AccountPreLoginDTO {

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

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

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

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

    @Schema(description = "异常ip")
    private String ip;
}
