package com.zt.plat.module.base.controller.admin.materialhasproperties.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Schema(description = "管理后台 - 物料持有属性批量保存 Request VO")
@Data
public class MaterialHasPropertiesBatchSaveReqVO {

    @Schema(description = "物料信息 ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "物料信息 ID 不能为空")
    private Long infomationId;

    @Schema(description = "属性列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @Valid
    private List<MaterialHasPropertiesBatchItemReqVO> properties = new ArrayList<>();

    @Schema(description = "部门ID,私有属性有值,通用属性无值")
    private Long deptId;
}
