package com.crm.rely.backend.core.entity.user.info;

import com.crm.rely.backend.core.constant.Constants;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class UserLoginSendEmailCodeEntity {

    private String lang;

    @NotNull(message = Constants.USERNAME_NOT_NULL_ERROR)
    @NotBlank(message = Constants.USERNAME_NOT_NULL_ERROR)
    private String loginName;

    private String email;

    private String ip;

    private Date time;
}
