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.NotNull;
import java.time.LocalDate;
import java.util.List;

@Schema(description = "管理后台 - 约束观察记录新增/修改 Request VO")
@Data
public class ElderlyRestraintSaveReqVO {

    @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)
    @NotNull(message = "记录日期不能为空")
    private LocalDate recordDate;

    @Schema(description = "约束原因")
    private String restraintReason;

    @Schema(description = "约束类型")
    private String restraintType;

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

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

