移除店铺总览功能(已迁移至概览模块)

This commit is contained in:
小蟑螂
2026-05-04 22:04:45 +08:00
parent 143cf1b977
commit 17bbae66a1
8 changed files with 1 additions and 610 deletions
@@ -50,13 +50,6 @@ export async function uploadShopLogoApi(file: File) {
});
}
/**
* 获取店铺总览
*/
export async function getShopOverviewApi(params: ShopDTO.StatisticsQuery) {
return requestClient.post<ShopVO.Overview>('/ec/shop/overview', params);
}
/**
* 分页获取店铺商品信息
*/
@@ -31,16 +31,6 @@ export namespace ShopDTO {
platformId?: number;
}
/** 店铺统计查询参数 */
export interface StatisticsQuery {
/** 店铺ID */
shopId: number;
/** 开始日期 */
startDate: string;
/** 结束日期 */
endDate: string;
}
/** 店铺商品分页查询过滤条件 */
export interface ProductPageFilters {
/** 店铺ID */
@@ -29,40 +29,6 @@ export namespace ShopVO {
updateBy?: number;
}
/** 店铺统计信息 */
export interface Statistics {
/** 销售额(商家实收金额总和) */
salesAmount: number;
/** 订单数 */
orderCount: number;
/** 客单价(销售额/订单数) */
averageOrderValue: number;
/** 成本(成本价*数量总和) */
costAmount: number;
/** 退款金额(已退款订单的实收金额总和) */
refundAmount: number;
/** 推广费 */
promotionFee: number;
/** 费比(推广费/销售额) */
feeRatio: number;
}
/** 每日数据项 */
export interface DailyData {
/** 日期 */
date: string;
/** 对应的值 */
value: number;
}
/** 每日统计数据 */
export interface DailyStatistics {
/** 时间范围的总值 */
total: number;
/** 每日数据列表 */
dailyDataList: DailyData[];
}
/** 店铺商品详细信息(已废弃,后端接口已删除) */
export interface ProductDetail {
/** 商品ID */
@@ -89,24 +55,6 @@ export namespace ShopVO {
averageOrderValue: number;
}
/** 店铺总览 */
export interface Overview {
/** 销售额统计 */
salesAmount: DailyStatistics;
/** 订单数统计 */
orderCount: DailyStatistics;
/** 客单价统计 */
averageOrderValue: DailyStatistics;
/** 成本统计 */
costAmount: DailyStatistics;
/** 退款金额统计 */
refundAmount: DailyStatistics;
/** 推广费统计 */
promotionFee: DailyStatistics;
/** 费比统计 */
feeRatio: DailyStatistics;
}
/** 店铺概览统计信息 */
export interface OverviewStatistics {
/** 店铺ID */