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 java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.propertyManagement.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 访客业务对象 wx_guest
 *
 * @author liushuai
 * @date 2025-05-14
 */

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

    /**
     * 主键
     */
    private Long guestId;

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

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

    /**
     * 到访时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date guestTime;

    /**
     * 到访时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date guestStartTime;

    /**
     * 到访时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date guestEndTime;

    /**
     * 访客手机
     */
    @NotBlank(message = "访客电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String guestPhone;

    /**
     * 小区主键
     */
    @NotNull(message = "到访小区不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long communityId;

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

    /**
     * 访客房间号
     */
    @NotBlank(message = "到访户号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String guestRoom;

    /**
     * 车牌号
     */
    private String plateNumber;

    /**
     * 手机验证码
     */
    @NotBlank(message = "验证码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phoneCode;
}
