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 GoodsSalesAmountRatioVo {

    @Schema(description = "商品销售金额占比列表")
    private List<GoodsAmountRatioItem> ratioList;

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

        @Schema(description = "销售金额（元）")
        private BigDecimal amount;

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