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

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

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

@Schema(description = "管理后台 - 离住记录创建 Request VO")
@Data
public class ElderlyTempOutCreateReqVO {

    @Schema(description = "长者id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "长者id不能为空")
    private Long elderId;

    @Schema(description = "床位id")
    private Long bedId;

    @Schema(description = "离住原因")
    private String outReason;

    @Schema(description = "离院时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = "GMT+8")
    private Date outTime;

    @Schema(description = "返回时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = "GMT+8")
    private Date comeTime;

    @Schema(description = "离住状态")
    private Integer outStatus;

    @Schema(description = "机构id")
    private Long tenantId;
}

