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

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

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

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "20562")
    @ExcelProperty("主键")
    private Long id;

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

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

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

    @Schema(description = "规格名字")
    @ExcelProperty("规格名字")
    private String specName;

    @Schema(description = "规格类型: common通用 full全价 half半价 free免票", example = "1")
    @ExcelProperty("规格类型:common通用 full全价 half半价 free免票")
    private String specType;

    @Schema(description = "库存")
    @ExcelProperty("库存")
    private Integer stock;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "规格类型描述")
    private String specTypeDesc;
}
