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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 日常照顾记录新增/修改 Request VO")
@Data
public class ElderlyDailyCareSaveReqVO {

    @Schema(description = "id", example = "1024")
    private Long id;

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

    @Schema(description = "记录月份", requiredMode = Schema.RequiredMode.REQUIRED, example = "2026-01")
    @NotBlank(message = "记录月份不能为空")
    private String recordMonth;

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

    @Schema(description = "明细列表")
    @Valid
    private List<ElderlyDailyCareItemSaveReqVO> items;
}

