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

import com.fasterxml.jackson.annotation.JsonFormat;
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.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 SpecialNursingPlanItemExecuteReqVO {

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

    @Schema(description = "特殊护理计划明细id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "特殊护理计划明细id不能为空")
    private Long specialPlanItemId;

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

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

    @Schema(description = "图片")
    private String imageUrl;

    @Schema(description = "租户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "租户ID不能为空")
    private Long tenantId;
}

