package cn.iocoder.yudao.module.pms.controller.admin.iotbom.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "管理后台 - PMS BOM 关系新增/修改 Request VO")
@Data
public class IotBomSaveReqVO {

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

    @Schema(description = "BOM名称", example = "李四")
    private String name;

    @Schema(description = "BOM编码")
    private String code;

    @Schema(description = "父BOM id 顶级为0", example = "3918")
    private Long parentId;

    @Schema(description = "子节点id 逗号分隔")
    private String childIds;

    @Schema(description = "层级")
    private Integer level;

    @Schema(description = "所属设备分类", example = "23419")
    private Long deviceCategoryId;

    @Schema(description = "显示顺序")
    private Integer sort;

    @Schema(description = "1维修 2保养 维修+保养", example = "[0, 1]")
    private List<Integer> type;

    @Schema(description = "状态 0启用  1停用", example = "1")
    private Integer status;

    @Schema(description = "是否叶子节点 0是 1否")
    private Integer leafFlag;

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

    @Schema(description = "版本")
    private Integer version;

    /**
     * 扩展字段
     */
    @Schema(description = "被拷贝设备分类id", example = "23419")
    private Long toDeviceCategoryId;
}