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.time.LocalDate;
import java.time.LocalDateTime;

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

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

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

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

    @Schema(description = "长者性别")
    private Integer elderSex;

    @Schema(description = "出生日期")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate birthday;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "证件类型", example = "1")
    private Integer idType;

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

    @Schema(description = "证件地址")
    private String certificateAddress;

    @Schema(description = "居住地址")
    private String address;

    @Schema(description = "托养人姓名", example = "王五")
    private String relativeName;

    @Schema(description = "托养人手机号")
    private String relativePhone;

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

    @Schema(description = "预约入住时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDateTime reservationCheckInTime;

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

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

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

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

    @Schema(description = "状态", example = "2")
    private Integer status;

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

    private Long tenantId;

}