package cn.iocoder.yudao.module.pms.controller.admin.maintain.bom.vo;

import cn.iocoder.yudao.module.pms.controller.admin.maintain.materials.vo.IotMaintainMaterialsSaveReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 维修工单对应维修项BOM新增/修改 Request VO")
@Data
public class IotMaintainBomSaveReqVO {

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

    @Schema(description = "维修工单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16140")
    @NotNull(message = "维修工单id不能为空")
    private Long maintainId;

    @Schema(description = "保养工单明细设备BOM节点id", example = "28516")
    private Long bomNodeId;

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

    @Schema(description = "物料数量")
    private Integer materialCount;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    private List<IotMaintainMaterialsSaveReqVO> materials;

}
