package com.eactive.httpmockserver.user.dto;

import com.eactive.httpmockserver.common.validator.PasswordMatch;
import com.eactive.httpmockserver.common.validator.UniqueId;
import com.eactive.httpmockserver.user.entity.UserStatus;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@PasswordMatch(input = "password", confirm = "password2")
public class UserRegisterDTO implements Serializable {


    /**
     * 고유ID
     */
    private String esntlId;

    /**
     * 업무사용자ID
     */
    @NotEmpty
    @UniqueId
//    @Email
    private String userId;


    /**
     * 비밀번호
     */
    @NotEmpty(message = "{field.required}")
    @Length(min = 8)
    private String password;

    @NotEmpty(message = "{field.required}")
    @Length(min = 8)
    private String password2;

    /**
     * 사용자상태코드
     */
    private UserStatus status;

    /**
     * 이동전화번호
     */
    @NotEmpty
    private String mobilePhone;

    /**
     * 사용자명
     */
    @NotEmpty
    private String username;

    private String userSecurity;

    public String getEsntlId() {
        return esntlId;
    }

    public void setEsntlId(String esntlId) {
        this.esntlId = esntlId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public UserStatus getStatus() {
        return status;
    }

    public void setStatus(UserStatus status) {
        this.status = status;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword2() {
        return password2;
    }

    public void setPassword2(String password2) {
        this.password2 = password2;
    }

    public String getUserSecurity() {
        return userSecurity;
    }

    public void setUserSecurity(String userSecurity) {
        this.userSecurity = userSecurity;
    }
}
