refactor(ecom-dmb): 店铺概览商品/品类对比表改为对象结构含合计行

This commit is contained in:
小蟑螂
2026-04-23 21:30:48 +08:00
parent c1f718ed7e
commit 85cce1ff7a
6 changed files with 237 additions and 26 deletions
@@ -149,10 +149,10 @@ export namespace ShopVO {
salesAmountTrend?: TrendData;
/** 单量趋势分析 */
orderCountTrend?: TrendData;
/** 多商品数据横向对比 */
productComparisons?: ProductComparison[];
/** 品类多维度数据对比 */
categoryComparisons?: CategoryComparison[];
/** 多商品数据横向对比(含合计行) */
productOverview?: ProductOverview;
/** 品类多维度数据对比(含合计行) */
categoryOverview?: CategoryOverview;
}
/** 商品对比数据 */
@@ -244,4 +244,20 @@ export namespace ShopVO {
/** 对应的值 */
value: number;
}
/** 商品概览(含合计行和商品列表) */
export interface ProductOverview {
/** 合计行 */
total: ProductComparison;
/** 各商品对比列表 */
products: ProductComparison[];
}
/** 品类概览(含合计行和品类列表) */
export interface CategoryOverview {
/** 合计行 */
total: CategoryComparison;
/** 各品类对比列表 */
categories: CategoryComparison[];
}
}