package com.yc.ship.module.product.controller.admin.productSpu.groupVO;

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

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

@Schema(description = "管理后台 - 平台分销产品保存 Request VO")
@Data
public class PlatProductSaveReqVO {

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

    @Schema(description = "产品ID", example = "23709")
    private Long productId;

    @Schema(description = "产品ID", example = "8989")
    @NotNull(message = "产品ID不能为空")
    private Long platProductId;

    @Schema(description = "平台产品时为关联ID", example = "8989")
    private Long productBaseId;

    @Schema(description = "产品类型;0自建子票 1平台产品", example = "1")
    private Integer productBaseType = 1;

    @Schema(description = "sku_id", example = "28152")
    private Long skuId;

    @Schema(description = "成本价格", example = "14190")
    private BigDecimal costPrice;

    @Schema(description = "销售价格", example = "27592")
    @NotNull(message = "销售价格不能为空")
    private BigDecimal salePrice;

    @Schema(description = "是否必选;0否 1是")
    @NotNull(message = "是否必选不能为空")
    private Integer needChoose;

    @Schema(description = "是否匹配过")
    private Boolean isMatched = false;

    @Schema(description = "平台产品规格价格")
    private List<PlatProductPriceRespVO> platProductPriceList;

}