mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 21:49:19 +08:00
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:
@@ -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',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user