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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;

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

@Schema(description = "管理后台 - 长者护理记录新增/修改 Request VO")
@Data
public class ElderlyNursingLogSaveReqVO {

    @Schema(description = "护理计划明细id", example = "1")
    private Long nursingPlanItemId;

    @Schema(description = "长者id", example = "1")
    private Long elderId;

    @Schema(description = "护理员")
    private String nurse;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "完成时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "完成时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime finishTime;

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