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

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

@Schema(description = "管理后台 - 生产单配件表 order_parts_{N}新增/修改 Request VO")
@Data
public class OrderPartsSaveReqVO {

    @Schema(description = "配件 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29347")
    private Long id;

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

    @Schema(description = "商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1195")
    @NotNull(message = "商品ID不能为空")
    private String goodsId;

    @Schema(description = "配件名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "晨丰")
    @NotEmpty(message = "配件名称不能为空")
    private String name;

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

    @Schema(description = "配件类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "配件类型不能为空")
    private String type;

    @Schema(description = "型号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "型号不能为空")
    private String model;

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

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

    @Schema(description = "厂家", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "厂家不能为空")
    private String factory;

    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "单位不能为空")
    private String unit;

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

    @Schema(description = "是否复合部件：0 否 1 是", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否复合部件：0 否 1 是不能为空")
    private Boolean isComposite;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    @NotEmpty(message = "备注不能为空")
    private String remark;

}