package cn.iocoder.yudao.module.mes.controller.admin.zjproduct.vo;

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

@Schema(description = "管理后台 - 质量管理-质检参数新增/修改 Request VO")
@Data
public class ZjProductSaveReqVO {

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

    @Schema(description = "工序", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "工序不能为空")
    private String type;

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

    @Schema(description = "单位")
    private String unit;

    @Schema(description = "上限值")
    private Double upperVal;

    @Schema(description = "下限值")
    private Double lowerVal;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "关联产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long productId;

}