package com.zt.plat.module.base.api.materialhasclasses.dto;

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

/**
 * 物料持有分类新增/修改 Request DTO
 */
@Data
public class MaterialHasClassesSaveReqDTO {

    @Schema(description = "主键ID", example = "16228")
    private Long id;

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

    @Schema(description = "分类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5914")
    @NotNull(message = "分类ID不能为空")
    private Long classesId;
}
