package com.yuchen.saas.manage.user.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nest.springwrap.core.mp.base.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用户基本信息
 */
@Data
@TableName("saas_user")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "用户基本信息", description = "用户基本信息")
public class SaasUser extends BaseEntity {

	private static final long serialVersionUID = 1L;


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

	@ApiModelProperty(value = "性别1男，2女")
	private Integer sex;

	@ApiModelProperty(value = "电话")
	private String contactPhone;

	@ApiModelProperty(value = "证件号码")
	private String idcard;

	@ApiModelProperty(value = "手机号码")
	private String phone;

	@ApiModelProperty(value = "注册来源")
	private Integer source;

	@ApiModelProperty(value = "生日")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date birthday;

	@ApiModelProperty(value = "个人照片")
	private String pic;

	@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;

	@ApiModelProperty(value = "允许他人查看我停车信息1允许，2不允许")
	private Integer publicParkingBill;


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

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


	@ApiModelProperty(value = "审核原因")
	private String reason;

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

	@ApiModelProperty(value = "认证提交时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date auditSubmitTime;
	@ApiModelProperty(value = "审核时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date auditTime;
	@ApiModelProperty(value = "审核人")
	private Long auditUser;
	@ApiModelProperty(value = "审核人")
	private String auditUserName;
	@ApiModelProperty(value = "认证状态")
	private Integer cerStatus;
}
