package org.springblade.device.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created By lidexi in 2021/4/27
 **/
@Getter
@Setter
public class UserInfoDto implements Serializable {

	private static final long serialVersionUID = 6303171002042633316L;

	/**
	 * 用户Id
	 */
	private String id;

	private String name;

	private String idCard;

	/**
	 * 人脸Id列表
	 */
	private List<Map<String,Object>> faceCodeList;

	private String faceUrl;

	private String expires;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date beginDate;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date endDate;

	/**
	 * 小区名称
	 */
	private String residentialName;

	/**
	 * 小区ID
	 */
	private Long residentialId;
}
