package com.xinelu.manage.domain.residentinfo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDate;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 居民信息对象 resident_info
 *
 * @author haown
 * @date 2024-03-27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "居民信息对象", description = "resident_info")
public class ResidentInfo extends BaseEntity {
	private static final long serialVersionUID=1L;

    /** 主键id */
    private Long id;

    /** 姓名 */
    @ApiModelProperty(value = "姓名")
    @Excel(name = "姓名")
    private String patientName;

    /** 电话 */
    @ApiModelProperty(value = "电话")
    @Excel(name = "电话")
    private String patientPhone;

    /** 家属电话 */
    @ApiModelProperty(value = "家属电话")
    @Excel(name = "家属电话")
    private String familyMemberPhone;

	/** 出生日期，格式：yyyy-MM-dd */
	@ApiModelProperty(value = "出生日期，格式：yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private LocalDate birthDate;

    /** 身份证号 */
    @ApiModelProperty(value = "身份证号")
    @Excel(name = "身份证号")
    private String cardNo;

    /** 性别，男：MALE，女：FEMALE */
    @ApiModelProperty(value = "性别，男：MALE，女：FEMALE")
    @Excel(name = "性别，男：MALE，女：FEMALE")
    private String sex;

    /** 住址 */
    @ApiModelProperty(value = "住址")
    @Excel(name = "住址")
    private String address;

    /** 微信小程序openid，微信小程序唯一标识 */
    @ApiModelProperty(value = "微信小程序openid，微信小程序唯一标识")
    @Excel(name = "微信小程序openid，微信小程序唯一标识")
    private String openId;

    /** 微信unionid，微信小程序和微信公众号统一标识 */
    @ApiModelProperty(value = "微信unionid，微信小程序和微信公众号统一标识")
    @Excel(name = "微信unionid，微信小程序和微信公众号统一标识")
    private String unionId;

    /** 微信公众号openid，微信公众号唯一标识 */
    @ApiModelProperty(value = "微信公众号openid，微信公众号唯一标识")
    @Excel(name = "微信公众号openid，微信公众号唯一标识")
    private String officialAccountOpenid;

}
