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

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 样品类型字典新增/修改 Request VO")
@Data
public class DictionarySampleTypeSaveReqVO {

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

    @Schema(description = "父级ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8469")
    @NotNull(message = "父级ID不能为空")
    private Long parentId;

    @Schema(description = "名称,结算样、生产样、西南铜委托样、商检委托样、内部委托样、抽查委托样、内审委托样等", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "名称,结算样、生产样、西南铜委托样、商检委托样、内部委托样、抽查委托样、内审委托样等不能为空")
    private String name;

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

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

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

}