package cn.iocoder.yudao.module.mes.controller.admin.stockworkshop.vo;

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

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 车间仓库存新增/修改 Request VO")
@Data
public class StockWorkshopSaveReqVO {

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

    @Schema(description = "原料编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "25972")
    @NotNull(message = "原料编号不能为空")
    private Long itemId;

    @Schema(description = "库存数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "30971")
    @NotNull(message = "库存数量不能为空")
    private BigDecimal count;
    @Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24261")
    private Long unitId;
    @Schema(description = "分类", example = "2548")
    private Long categoryId;

}