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

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.yc.ship.module.product.api.dto.ProductGroupRespDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Schema(description = "管理后台 - 产品组合 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PlatProductRespVO {

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

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

    @Schema(description = "产品ID", example = "8989")
    private Long platProductId;

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

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

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

    @Schema(description = "销售价格", example = "27592")
    @ExcelProperty("销售价格")
    private BigDecimal salePrice;

    @Schema(description = "是否必选;0否 1是")
    @ExcelProperty("是否必选;0否 1是")
    private Integer needChoose;

    @Schema(description = "产品名称", example = "车票")
    @ExcelProperty("产品名称")
    private String productName;

    @Schema(description = "基础产品", example = "车票")
    @ExcelProperty("基础产品")
    private String productBaseName;

    @Schema(description = "房型")
    private Integer roomType;

    @Schema(description = "床型")
    private Integer bedType;

    @Schema(description = "含早餐类型")
    private Integer hasBreakfast;

    @Schema(description = "产品规格信息")
    private List<ProductGroupRespDTO> productGroupList;

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

}