package com.yuchen.saas.manage.user.api.vo.sassuser;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.nest.springwrap.core.tool.utils.BeanUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel(value = "个人认证", description = "个人认证")
public class SaasUserCertificationVo {


    @ApiModelProperty(value = "用户id")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long userId;

    @ApiModelProperty(value = "姓名")
    private String name;

//    @ApiModelProperty(value = "性别")
//    private Integer sex;

    @ApiModelProperty(value = "身份证号")
    private String idcard;

    @ApiModelProperty(value = "身份证正面")
    private String idcardPicFront;

    @ApiModelProperty(value = "身份证反面")
    private String idcardPicReverse;

    @ApiModelProperty(value = "身份证有效期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date idcardEffectiveTime;

//    @ApiModelProperty(value = "个人照片")
//    private String pic;
//
//    @ApiModelProperty(value = "手机号码")
//    private String contactPhone;
//
//    @ApiModelProperty(value = "省")
//    private String contactProvince;
//    @ApiModelProperty(value = "省名称")
//    private String contactProvinceName;
//
//    @ApiModelProperty(value = "市")
//    private String contactCity;
//    @ApiModelProperty(value = "市名称")
//    private String contactCityName;
//
//    @ApiModelProperty(value = "区/县")
//    private String contactCounty;
//    @ApiModelProperty(value = "区/县名称")
//    private String contactCountyName;
//
//    @ApiModelProperty(value = "镇/街道")
//    private String contactTown;
//    @ApiModelProperty(value = "镇/街道名称")
//    private String contactTownName;
//
//    @ApiModelProperty(value = "详细地址")
//    private String contactAddress;

//    public SaasUserCertification toCertification(){
//        SaasUserCertification certification=new SaasUserCertification();
//        BeanUtil.copyProperties(this,certification);
//        return certification;
//    }
}
