/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.community.staff.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2020-12-11
 */
@Data
@TableName("yc_enterprise_staff")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "EnterpriseStaff对象", description = "EnterpriseStaff对象")
public class EnterpriseStaff extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 昵称
	*/
		@ApiModelProperty(value = "昵称")
		private String name;
	/**
	* 真名
	*/
		@ApiModelProperty(value = "真名")
		private String realName;
	/**
	* 所属企业
	*/
		@ApiModelProperty(value = "所属企业")
		private Long enterpriseId;
	/**
	* 企业名称
	*/
		@ApiModelProperty(value = "企业名称")
		private String enterpriseName;
	/**
	* 用户编号
	*/
		@ApiModelProperty(value = "用户编号")
		private String code;
	/**
	* 头像
	*/
		@ApiModelProperty(value = "头像")
		private String avatar;
	/**
	* 邮箱
	*/
		@ApiModelProperty(value = "邮箱")
		private String email;
	/**
	* 手机
	*/
		@ApiModelProperty(value = "手机")
		private String phone;
	/**
	* 生日
	*/
		@ApiModelProperty(value = "生日")
		private LocalDateTime birthday;
	/**
	* 详细住址
	*/
		@ApiModelProperty(value = "详细住址")
		private String address;
	/**
	* 性别
	*/
		@ApiModelProperty(value = "性别(1男，2女)")
		private Integer sex;
	/**
	* 角色id
	*/
		@ApiModelProperty(value = "角色id")
		private String roleId;
	/**
	* 部门id
	*/
		@ApiModelProperty(value = "部门id")
		private Long deptId;
	/**
	* 岗位id
	*/
		@ApiModelProperty(value = "岗位id")
		private String postId;

	/**
	 * 来访目的
	 */
		@ApiModelProperty(value = "来访目的")
		private String visitPurpose;
	/**
	 * 备注
	 */
		@ApiModelProperty(value = "备注")
		private String remarks;
	/**
	 * 小程序openId
	 */
		@ApiModelProperty(value = "小程序openId")
		private String openId;
	/**
	 * 是否审核通过（0否，1是）
	 */
		@ApiModelProperty(value = "是否审核通过（0否，1是，2失败）")
		private Integer examine;
	/**
	 * （来源）{0：后台，1：小程序}
	 */
		@ApiModelProperty(value = "（来源）{0：后台，1：小程序}")
		private Integer createType;
	/**
	 * idcard
	 */
		@ApiModelProperty(value = "idcard")
		private String idcard;
	/**
	 * face
	 */
		@ApiModelProperty(value = "face")
		private String face;

	/**
	 * 园区id
	 */
		@ApiModelProperty(value = "园区id")
		private Long agencyId;
	/**
	 * 区域id
	 */
		@ApiModelProperty(value = "区域id")
		private Long residentialId;
	/**
	 * 审核意见
	 */
		@ApiModelProperty(value = "审核意见")
		private String opinion;
	/**
	 * 审核时间
	 */
		@ApiModelProperty(value = "审核时间")
		@JsonFormat(timezone = "GMT+8")
		private Date auditTime;

	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		timezone = "GMT+8",
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty("创建时间")
	private Date createTime;

	/**
	 * 机构路径
	 */
	@ApiModelProperty(value = "机构路径")
	private String orgPosition;

	/**
	 * 是否为小程序园区管理员：0-否 1-是
	 */
	@ApiModelProperty(value = "是否为小程序园区管理员：0-否 1-是")
	private Integer isAgencyManager;

	/**
	 * 若为园区管理员时的小程序登录账号
	 */
	@ApiModelProperty(value = "若为园区管理员时的小程序登录账号")
	private String agencyAccount;

	/**
	 * 若为园区管理员时的小程序登录密码
	 */
	@ApiModelProperty(value = "若为园区管理员时的小程序登录密码")
	@JsonIgnore
	private String agencyPassword;

	/**
	 * 是否为企业管理员：0-否 1-是
	 */
	@ApiModelProperty(value = "是否为企业管理员：0-否 1-是")
	private String isEnterpriseManager;

	/**
	 * 若为企业管理员时的小程序登录账号
	 */
	@ApiModelProperty(value = "若为企业管理员时的小程序登录账号")
	private String enterpriseAccount;

	/**
	 * 若为企业管理员时的小程序登录密码
	 */
	@ApiModelProperty(value = "若为企业管理员时的小程序登录密码")
	@JsonIgnore
	private String enterprisePassword;

	@ApiModelProperty(value="集约平台id")
	private String inhabitantId;

}
