package cn.iocoder.yudao.module.system.controller.admin.nursing.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 static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 长者特殊护理计划执行日志列表 Request VO")
@Data
public class ElderlySpecialNursingLogListReqVO {

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

    @Schema(description = "完成日期范围", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "完成日期范围不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] finishTime;

    @Schema(description = "租户ID", example = "1")
    private Long tenantId;
}

