refactor(api): 全店概览导出接口路径统一为 RESTful 风格

- ExportController 路径改为 /ec/store-overview/export/{by-shop|by-category|by-platform}
- ExportFilenameUtils 新增 buildFullStoreOverviewXlsxName 方法
- ShopExportController 路径同步调整
- 前端 store-overview / shop apis 同步适配新接口路径
This commit is contained in:
小蟑螂
2026-05-06 01:32:52 +08:00
parent 330b6f0955
commit 157c5ae3c4
14 changed files with 149 additions and 82 deletions
@@ -75,27 +75,27 @@ export async function getShopOverviewStatisticsApi(
}
/**
* 导出店铺概览Excel
* 店铺数据统计-按商品汇总(Excel)
*/
export async function exportShopOverviewApi(params: {
export async function exportShopSummaryByProductApi(params: {
shopId: number;
dateRange: string[];
exportType?: string;
}) {
return requestClient.post('/ec/shop/export-overview', params, {
return requestClient.post('/ec/shop/export/summary-by-product', params, {
responseType: 'blob',
});
}
/**
* 导出公司概览Excel
* 全店概览-按店铺汇总(Excel)
*/
export async function exportCompanyOverviewApi(params: {
dateRange: string[];
shopIds?: number[];
exportType?: string;
}) {
return requestClient.post('/ec/store-overview/export', params, {
return requestClient.post('/ec/store-overview/export/by-shop', params, {
responseType: 'blob',
});
}