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

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

    @Schema(description = "流程名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "流程名称不能为空")
    private String name;

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

    @Schema(description = "流程配置内容JSON")
    private String content;

    @Schema(description = "流程描述")
    private String description;

    @Schema(description = "类型,主样base_sample、子样sub_sample", example = "1")
    private String type;

    @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;

    @Schema(description = "是否最新版本,1-是，0-否")
    private Integer isLast;

}