package com.propertyManagement.business.domain.bo;

import com.propertyManagement.common.core.validate.AddGroup;
import com.propertyManagement.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.propertyManagement.common.core.domain.BaseEntity;

/**
 * 家庭成员业务对象 wx_family_member
 *
 * @author liushuai
 * @date 2025-05-14
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WxFamilyMemberBo extends BaseEntity {

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

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 业主ID
     */
    private Long proprietorId;

    /**
     * 业主姓名
     */
    private String proprietorName;

    /**
     * 小区ID
     */
    private Long communityId;

    /**
     * 小区名称
     */
    private String communityName;
    /**
     * 房号
     */
    private String room;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 电话
     */
    private String phone;

    /**
     * 关系
     */
    private Integer relation;

    /**
     * 状态（1待审核 2审核通过 3审核失败）
     */
    private Integer state;


}
