package com.snack.server.module.product.vo;

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

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品 SKU VO
 */
@Data
@Schema(description = "商品 SKU")
public class ProductSkuVO implements Serializable {

    @Schema(description = "SKU ID")
    private Long id;

    @Schema(description = "所属 SPU ID")
    private Long productId;

    @Schema(description = "规格名称")
    private String skuName;

    @Schema(description = "规格图片")
    private String image;

    @Schema(description = "售价")
    private BigDecimal price;

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

    @Schema(description = "销量")
    private Integer sales;

    @Schema(description = "重量（克）")
    private Integer weight;

    @Schema(description = "排序号")
    private Integer sort;
}
