package go.kr.project.login.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Size;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class LoginUserVO {

    private String userId;

    private String userAcnt;

    private String userNm;

    private String passwd;

    private String passwdHint;

    private String passwdNsr;

    private String empNo;

    private String gender;

    private String zip;

    private String addr;

    private String daddr;

    private String areaNo;

    private String emlAddr;

    private String orgCd;

    //기관코드명
    private String orgCdNm;

    @Size(max = 20)
    private String userGroupId;

    //그룹코드명
    private String userGroupIdNm;

    private String nsttCd;

    //소속코드명
    private String sttCdName;

    private String posNm;

    private String crtfcDn;

    private String lockYn;

    private Integer lockCnt;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
    private LocalDateTime lockDttm;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
    private LocalDateTime regDttm;

    private String rgtr;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Seoul")
    private LocalDateTime mdfcnDttm;

    private String mdfr;

    private String userStatusCd;

    //유저상태명
    private String userStatusNm;

    private String fxno;

    private String telno;

    private String mblTelno;

    private String brdt;

    private String deptCd;

    //부서코드명
    private String deptCdNm;

    private String useYn;

    private String rsdntNo;

    private String passwdInitYn;

}
