package org.dromara.mp.domain.vo;

import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.mp.domain.UserWorker;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 自雇者视图对象 user_worker
 *
 * @author LionLi
 * @date 2024-03-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = UserWorker.class)
public class UserWorkerVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 微信openid
     */
    @ExcelProperty(value = "微信openid")
    private String openId;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    private String name;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    private String phone;

    /**
     * 银行卡是否认证（0:否 1:是）
     */
    @ExcelProperty(value = "银行卡是否认证", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=:否,1=:是")
    private Long isAuthentication;

    /**
     * 身份证号
     */
    @ExcelProperty(value = "身份证号")
    private String cardId;

    /**
     * 身份证正面图片
     */
    @ExcelProperty(value = "身份证正面图片")
    private String cardPositive;

    /**
     * 身份证反面图片
     */
    @ExcelProperty(value = "身份证反面图片")
    private String cardBack;

    /**
     * 银行类型（字典）
     */
    @ExcelProperty(value = "银行类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "字=典")
    private String bankType;

    /**
     * 银行账号
     */
    @ExcelProperty(value = "银行账号")
    private String bankCard;

    /**
     * 是否实名认证（0:否 1:是）
     */
    @ExcelProperty(value = "是否实名认证", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=:否,1=:是")
    private Long isAuth;

    /**
     * 是否签约（0:否 1:是）
     */
    @ExcelProperty(value = "是否签约", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=:否,1=:是")
    private Long isSign;

    /**
     * 签约时间
     */
    @ExcelProperty(value = "签约时间")
    private Date signTime;

    /**
     * 是否临时税务登记（0:否 1:是）
     */
    @ExcelProperty(value = "是否临时税务登记", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=:否,1=:是")
    private Long isRegister;

    /**
     * 人脸照片
     */
    @ExcelProperty(value = "人脸照片")
    private String photoPath;

    /**
     * 性别
     */
    @ExcelProperty(value = "性别")
    private String sex;

    /**
     * 标签
     */
    @ExcelProperty(value = "标签")
    private String tag;

    /**
     * 区域编码
     */
    @ExcelProperty(value = "区域编码")
    private String userArea;

    /**
     * 区域名称
     */
    @ExcelProperty(value = "区域名称")
    private String userAreaName;

    /**
     * 添加时间
     */
    @ExcelProperty(value = "添加时间")
    private Date addTime;

    /**
     * 添加人
     */
    @ExcelProperty(value = "添加人")
    private String addBy;

    /**
     * 编辑人
     */
    @ExcelProperty(value = "编辑人")
    private String editer;

    /**
     * 编辑时间
     */
    @ExcelProperty(value = "编辑时间")
    private Date editTime;

    /**
     * 民族
     */
    @ExcelProperty(value = "民族")
    private String nation;

    /**
     * 户籍地址
     */
    @ExcelProperty(value = "户籍地址")
    private String address;

    /**
     * 出生日期
     */
    @ExcelProperty(value = "出生日期")
    private Date birthday;

    /**
     * 签发机关
     */
    @ExcelProperty(value = "签发机关")
    private String issue;

    /**
     * 签发日期
     */
    @ExcelProperty(value = "签发日期")
    private Date issueDate;

    /**
     * 失效日期
     */
    @ExcelProperty(value = "失效日期")
    private String expiryDate;

    /**
     * 推荐人
     */
    @ExcelProperty(value = "推荐人")
    private String referrerBy;

    /**
     * 支付宝登录号(支持邮箱和手机号格式)
     */
    @ExcelProperty(value = "支付宝登录号(支持邮箱和手机号格式)")
    private String alipayLogonId;

    /**
     * 状态（1：启用 2：禁用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=：启用,2=：禁用")
    private Integer status;


    @ExcelIgnore
    private String bizToken;

    @ExcelIgnore
    private Date tokenExpirDate;

    @ExcelIgnore
    private Integer isFaceAuth;

}
