package com.sckw.report.model.vo;

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

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

@Data
@Schema(description = "主要商品销量占比响应")
public class GoodsSalesVolumeRatioVo {

    @Schema(description = "商品销量占比列表")
    private List<GoodsVolumeRatioItem> ratioList;

    @Data
    @Schema(description = "商品销量占比项")
    public static class GoodsVolumeRatioItem {
        @Schema(description = "商品名称（最低级分类）")
        private String goodsName;

        @Schema(description = "销量（吨）")
        private BigDecimal volume;

        @Schema(description = "占比（%）")
        private BigDecimal percentage;
    }
}