package cn.iocoder.yudao.module.system.controller.admin.user.vo.user;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.system.dal.dataobject.user.*;
import cn.iocoder.yudao.module.system.enums.DictTypeConstants;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Set;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 用户信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserRespVO {

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
//    @ExcelProperty("用户编号")
    private Long id;

    @Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao")
    @ExcelProperty("登录账号")
    private String username;

    @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("用户昵称")
    private String nickname;

    @Schema(description = "备注", example = "我是一个用户")
    private String remark;

    @Schema(description = "部门ID", example = "我是一个用户")
    private Long deptId;
    @Schema(description = "部门名称", example = "IT 部")
    @ExcelProperty("部门名称")
    private String deptName;

    @Schema(description = "岗位编号数组", example = "1")
    private Set<Long> postIds;

    @Schema(description = "用户邮箱", example = "yudao@iocoder.cn")
    @ExcelProperty("用户邮箱")
    private String email;

    @Schema(description = "手机号码", example = "15601691300")
    @ExcelProperty("手机号码")
    private String mobile;

    @Schema(description = "用户性别，参见 SexEnum 枚举类", example = "1")
    @ExcelProperty(value = "用户性别", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.USER_SEX)
    private Integer sex;

    @Schema(description = "用户头像", example = "https://www.iocoder.cn/xxx.png")
    private String avatar;

    @Schema(description = "状态，参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "帐号状态", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.COMMON_STATUS)
    private Integer status;

    @Schema(description = "最后登录 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "192.168.1.1")
//    @ExcelProperty("最后登录IP")
    private String loginIp;

    @Schema(description = "最后登录时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
//    @ExcelProperty("最后登录时间")
    private LocalDateTime loginDate;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
    private LocalDateTime createTime;

    private String isEnableEnterpriseLogin;

    @Schema(description = "用户编号")
    private String userNumber;

    @Schema(description = "用户类型")
    private Integer userType;

    @Schema(description = "证件类型", example = "1")
    @ExcelProperty(value = "证件类型", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.PAPERS_TYPE)
    private String idType;

    @Schema(description = "证件号码")
    @ExcelProperty("证件号码")
    private String idNumber;

    @Schema(description = "出生日期")
    @ExcelProperty("出生日期")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate birthday;

    @Schema(description = "民族")
    @ExcelProperty(value = "民族", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.NATION_ARR)
    private String nation;

    @Schema(description = "籍贯")
    @ExcelProperty("籍贯")
    private String nativePlace;

    @Schema(description = "居住地址")
    @ExcelProperty("居住地址")
    private String residentialAddress;

    @Schema(description = "是否党员")
    @ExcelProperty(value = "是否党员", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.POLITICAL_ARR)
    private String isPartyMember;

    @Schema(description = "婚姻状况", example = "1")
    @ExcelProperty(value = "婚姻状况", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.MARITAL_STATUS_ARR)
    private String maritalStatus;

    @Schema(description = "最高学历")
    @ExcelProperty(value = "最高学历",converter = DictConvert.class)
    @DictFormat(DictTypeConstants.EDUCATION_BACKGROUND)
    private String highestDegree;

    @Schema(description = "毕业院校")
    @ExcelProperty("毕业院校")
    private String graduateSchool;

    @Schema(description = "专业")
    @ExcelProperty("专业")
    private String major;

    @Schema(description = "毕业年份")
    @ExcelProperty("毕业年份")
    private String graduationYear;

    @Schema(description = "是否有护理等级证书")
    @ExcelProperty(value = "是否有护理等级证书", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.COMMON_STATUS6)
    private String isHaveNursingLevelCertificate;

    @Schema(description = "是否缴纳社保")
    @ExcelProperty(value = "是否缴纳社保", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.COMMON_STATUS6)
    private String isPaySocialSecurity;

    @Schema(description = "职务")
    @ExcelProperty("职务")
    private String job;

    @Schema(description = "入职日期")
    @ExcelProperty("入职日期")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate joinedDate;

    @Schema(description = "试用期（月）")
    @ExcelProperty("试用期（月）")
    private String trialPeriod;

    @Schema(description = "试用期工资(元)")
    @ExcelProperty("试用期工资(元)")
    private BigDecimal probationarySalary;

    @Schema(description = "转正工资(元)")
    @ExcelProperty("转正工资(元)")
    private BigDecimal regularSalary;

    @Schema(description = "身份证人像照")
//    @ExcelProperty("身份证人像照")
    private String idCardPortraitPhoto;

    @Schema(description = "身份证国徽照")
//    @ExcelProperty("身份证国徽照")
    private String nationalEmblemPhoto;

    @Schema(description = "银行卡正面照")
//    @ExcelProperty("银行卡正面照")
    private String bankCardFrontPhoto;

    @Schema(description = "银行卡反面照")
//    @ExcelProperty("银行卡反面照")
    private String bankCardBackPhoto;

    @Schema(description = "银行卡号")
//    @ExcelProperty("银行卡号")
    private String bankCardNumber;

    @Schema(description = "银行名称", example = "张三")
//    @ExcelProperty("银行名称")
    private String bankCardName;

    @Schema(description = "入职告知书")
//    @ExcelProperty("入职告知书")
    private String employmentNoticeFile;

    @Schema(description = "技能证书")
//    @ExcelProperty("技能证书")
    private String skillsCertificateFile;

    @Schema(description = "体检报告")
//    @ExcelProperty("体检报告")
    private String medicalReport;

    /**
     * 护理员等级
     */
    @Schema(description = "护理员等级")
    private String nursingStaffLevel;

    @Schema(description = "用户教育经历")
    private List<AdminUserEducationDO> userEducations;

    @Schema(description = "用户家庭情况")
    private List<AdminUserFamilySituationDO> userFamilySituations;

    @Schema(description = "用户资质列表")
    private List<AdminUserQualificationDO> userQualifications;

    @Schema(description = "用户奖惩列表")
    private List<AdminUserRewardsPunishmentsDO> userRewardsPunishments;

    @Schema(description = "用户补贴")
    private List<AdminUserSubsidyDO> userSubsidy;

    @Schema(description = "用户培训经历")
    private List<AdminUserTrainingExperienceDO> userTrainingExperiences;

    @Schema(description = "用户工作经历")
    private List<AdminUserWorkExperienceDO> userWorkExperiences;


    @Schema(description = "租户名称")
    private String tenantName;

    @Schema(description = "工作状态")
    private Integer workStatus;

    private Long tenantId;


    private List<String> roleList;



}
