package cn.iocoder.yudao.module.iot.controller.admin.recipeplandetail.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 RecipePlanDetailSaveReqVO {

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

    @Schema(description = "编码（新建时输入）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编码（新建时输入）不能为空")
    private String code;

    @Schema(description = "名称（新建时输入）", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "名称（新建时输入）不能为空")
    private String name;

    @Schema(description = "关联配方（关联iot_recipe表的id）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2489")
    @NotNull(message = "关联配方（关联iot_recipe表的id）不能为空")
    private Long recipeId;

    @Schema(description = "关联计划（关联mes_plan表的id）", example = "28398")
//    @NotNull(message = "关联计划（关联mes_plan表的id）不能为空")
    private Long planId;

    @Schema(description = "来源（新增/生产中）")
    private String source;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "是否启用不能为空")
    private Boolean isEnable;

}