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;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "管理后台 - 长者来访预约新增/修改 Request VO")
@Data
public class AppointmentSaveReqVO {

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

    @Schema(description = "预约目的")
    private Integer appointmentPurpose;

    @Schema(description = "预约人")
    private String appointedBy;

    @Schema(description = "预约日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private Date appointmentDate;

    @Schema(description = "预约形式")
    private Integer appointmentForm;

    @Schema(description = "预约人性别")
    private Integer gender;

    @Schema(description = "预约人联系方式")
    private String phone;

    @Schema(description = "预约说明")
    private String appointmentInstructions;

    @Schema(description = "关系")
    private Integer relation;

    @Schema(description = "床位ID", example = "7873")
    private Long bedId;

    @Schema(description = "长者Id")
    private Long elderId;

    @Schema(description = "长者名称", example = "张三")
    private String elderName;

    @Schema(description = "状态,0：待接待 1：已接待 2：已关闭", example = "1")
    private Integer status;

    @Schema(description = "证件号码")
    private String idNumber;

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

    @Schema(description = "销售人员")
    private String salesperson;

    @Schema(description = "来源渠道")
    private Integer sourceChannel;

    private Long tenantId;

}