package com.eactive.eai.rms.onl.apim.portaluser;

import com.eactive.apim.portal.portaluser.entity.PortalUserEnums.ApprovalStatus;
import com.eactive.apim.portal.portaluser.entity.PortalUserEnums.RoleCode;
import com.eactive.apim.portal.portaluser.entity.PortalUserEnums.UserStatus;
import com.eactive.eai.data.converter.LocalDateTimeFormatters;
import com.eactive.eai.rms.onl.apim.portalorg.PortalOrgUI;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class PortalUserUI {
    private String id;

    private String loginId;

    private String userName;

    private String phoneNumber;

    private String mobileNumber;

    private String emailAddr;

    private String orgId;

    private PortalOrgUI portalOrgUIs;

    private UserStatus userStatus;
    private String userStatusDescription;

    private ApprovalStatus approvalStatus;
    private String approvalStatusDescription;

    private RoleCode roleCode;
    private String roleCodeDescription;

    private String createdBy;

    @JsonFormat(pattern = LocalDateTimeFormatters.FORMAT_YYYYMMDDHHMMSS_14)
    @DateTimeFormat(pattern = "yyyyMMddHHmmss")
    private LocalDateTime createdDate;

    private String lastModifiedBy;

    @JsonFormat(pattern = LocalDateTimeFormatters.FORMAT_YYYYMMDDHHMMSS_14)
    @DateTimeFormat(pattern = "yyyyMMddHHmmss")
    private LocalDateTime lastModifiedDate;

    private String accountLockYn;
}
