package cn.iocoder.yudao.module.iot.controller.admin.recipeplandetail.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.alibaba.excel.annotation.ExcelProperty;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 配方计划详情表（配方库） Response VO")
@Data
public class RecipePlanDetailRespVO {

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

    @Schema(description = "编码（新建时输入）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("编码（新建时输入）")
    private String code;

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

    @Schema(description = "关联配方ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2489")
    @ExcelProperty("关联配方ID")
    private Long recipeId;

    @Schema(description = "配方名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("配方名称")
    private String recipeName;  // 新增关联字段

    @Schema(description = "关联计划ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28398")
    @ExcelProperty("关联计划ID")
    private Long planId;

    @Schema(description = "计划编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("计划编码")
    private String planCode;  // 新增关联字段

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

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否启用")
    private Boolean isEnable;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

//    @Schema(description = "创建人名字", example = "随便")
//    @ExcelProperty("创建人名字")
//    private String creatorName;

}