package cn.iocoder.yudao.module.system.controller.admin.material.vo;

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

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

@Schema(description = "管理后台 - 门店材料库存新增/修改 Request VO")
@Data
public class MaterialSaveReqVO {

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

    @Schema(description = "库存材料名称", example = "赵六")
    @NotEmpty(message = "库存材料名称不能为空")
    private String materialName;

    @Schema(description = "库存材料重量")
    @NotNull(message = "库存材料重量不能为空")
    private BigDecimal materialWeight;

    @Schema(description = "门店编号")
    @NotNull(message = "门店编号不能为空")
    private Long carteenId;

    @Schema(description = "库存材料重量单位")
    @NotEmpty(message = "库存材料重量单位不能为空")
    private String meterialUnit;

}