package com.sckw.order.api.model;

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

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 实时销量：单个商品在各时间点的净重（吨）
 */
@Data
public class RealtimeSalesGoodsSeriesVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "商品id")
    private Long goodsId;

    @Schema(description = "商品名称（含规格等展示名）")
    private String goodsName;

    /**
     * 与 {@link RealtimeSalesVolumeVo#timeLabels} 下标一一对应，单位：吨
     */
    @Schema(description = "各时间点净重汇总（吨），与 timeLabels 顺序一致")
    private List<BigDecimal> tonsPerSlot = new ArrayList<>();
}
