package cn.iocoder.yudao.module.system.controller.admin.reservation.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "管理后台 - 来访登记新增/修改 Request VO")
@Data
public class RegistrationSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "501")
    private Long id;

    @Schema(description = "来访预约ID")
    private Long appointmentId;

    @Schema(description = "来访目的")
    private Integer purposeVisit;

    @Schema(description = "来访时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date visitingTime;

    @Schema(description = "访客姓名", example = "芋艿")
    private String visitorName;

    @Schema(description = "访客电话")
    private String phone;

    @Schema(description = "来访携带物品")
    private String belongings;

    @Schema(description = "信息渠道")
    private Integer informationChannel;

    @Schema(description = "来访说明")
    private String instructions;

    @Schema(description = "离开时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date leaveTime;

    @Schema(description = "系统类型", example = "1")
    private Integer orgType;

    private Long tenantId;

}