package com.zt.plat.module.qms.business.config.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 标准样类型配置新增/修改 Request VO")
@Data
public class ConfigStandardSampleTypeSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "408")
    private Long id;

    @Schema(description = "主样配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9270")
    @NotNull(message = "主样配置ID不能为空")
    private Long configBaseSampleId;

    @Schema(description = "标准样类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "标准样类型名称不能为空")
    private String name;

    @Schema(description = "编码规则", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编码规则不能为空")
    private String codeRule;

    @Schema(description = "分析部门ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "765")
    @NotNull(message = "分析部门ID不能为空")
    private Long assayDepartmentId;

    @Schema(description = "分析部门名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "分析部门名称不能为空")
    private String assayDepartmentName;

    @Schema(description = "所属部门", requiredMode = Schema.RequiredMode.REQUIRED)
    private String systemDepartmentCode;

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

    @Schema(description = "版本", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "版本不能为空")
    private Integer version;

}