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 ConfigBaseSampleSaveReqVO {

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

    @Schema(description = "样品大类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15112")
    @NotNull(message = "样品大类ID不能为空")
    private Long baseSampleId;

    @Schema(description = "父级ID", example = "25043")
    private Long parentId;

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

    @Schema(description = "样品流程Key", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "样品流程Key不能为空")
    private String flowKey;

    @Schema(description = "样品标签打印模版", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "样品标签打印模版不能为空")
    private String printTemplate;

    @Schema(description = "样品标签打印份数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "样品标签打印份数不能为空")
    private byte[] codePrintQuantity;

    @Schema(description = "样品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "样品名称不能为空")
    private String sampleName;

    @Schema(description = "所属部门")
    private String systemDepartmentCode;

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

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

}