package cn.iocoder.yudao.module.system.controller.admin.evaluation.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.time.LocalDate;
import java.util.List;

@Schema(description = "管理后台 - 卫生服务质量评价新增/修改 Request VO")
@Data
public class EvaluationServiceQualitySaveReqVO {

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

    @Schema(description = "检查区域", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "检查区域不能为空")
    private String checkArea;

    @Schema(description = "检查人", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "检查人不能为空")
    private String checkPerson;

    @Schema(description = "检查日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "检查日期不能为空")
    private LocalDate checkDate;

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

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

