package com.zt.plat.module.erp.controller.admin.erp.vo;

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

@Schema(description = "管理后台 - ERP工艺路线明细新增/修改 Request VO")
@Data
public class ErpProcessDetailSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "5707")
    private Long id;

    @Schema(description = "ERP工艺路线主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "30589")
    @NotEmpty(message = "ERP工艺路线主键不能为空")
    private String processId;

    @Schema(description = "工序编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "工序编码不能为空")
    private String processingNumber;

    @Schema(description = "工序描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "工序描述不能为空")
    private String processingName;

    @Schema(description = "作业的计量单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "作业的计量单位不能为空")
    private String uom;

    @Schema(description = "工作中心编号")
    private String workCenterNumber;

    @Schema(description = "工作中心描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "工作中心描述不能为空")
    private String workCenterName;

}