package com.cf.imes.module.executor.controller.admin.rawgoods.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 生产单设计商品表 order_raw_goods_{N}新增/修改 Request VO")
@Data
public class RawGoodsSaveReqVO {

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

    @Schema(description = "生产单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8905")
    @NotNull(message = "生产单号不能为空")
    private Long orderId;

    @Schema(description = "设计端商品编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "28930")
    @NotEmpty(message = "设计端商品编码不能为空")
    private String rawGoodsNo;

    @Schema(description = "设计端商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "设计端商品名称不能为空")
    private String goodsName;

    @Schema(description = "材质", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "材质不能为空")
    private String material;

    @Schema(description = "颜色", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "颜色不能为空")
    private String color;

    @Schema(description = "纹路")
    private Integer texture;

    @Schema(description = "厚度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "厚度不能为空")
    private Double thickness;

    @Schema(description = "价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "3872")
    @NotNull(message = "价格不能为空")
    private Double price;

    @Schema(description = "品牌", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "品牌不能为空")
    private String brand;

    @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "规格不能为空")
    private String spec;

}