refactor(api): 统一全店/店铺概览接口路径风格

- /ec/store-overview/statistics → /ec/store/overview
- /ec/shop/overview-statistics → /ec/shop/overview
- 前后端接口路径同步更新
This commit is contained in:
小蟑螂
2026-05-06 01:03:59 +08:00
parent 12b94217fc
commit 330b6f0955
4 changed files with 5 additions and 5 deletions
@@ -15,7 +15,7 @@ import top.xyquan.ecomdmbbackend.modules.ecom.overview.service.CompanyOverviewSe
*/
@Tag(name = "电商-全店铺概览", description = "全店铺概览统计接口")
@RestController
@RequestMapping("/ec/store-overview")
@RequestMapping("/ec/store")
public class CompanyOverviewController {
private final CompanyOverviewService companyOverviewService;
@@ -25,7 +25,7 @@ public class CompanyOverviewController {
}
@Operation(summary = "获取全店铺概览统计数据", description = "获取当前公司所有店铺的概览统计数据,包括销售额、单量、推广费、利润、ROI等")
@PostMapping("/statistics")
@PostMapping("/overview")
@RequirePermission(value = "ecom:shop:read", description = "查询全店铺概览", allowSuper = true)
public ApiResponse<CompanyOverviewVO> getCompanyOverview(@Valid @RequestBody CompanyOverviewQueryDTO queryDTO) {
CompanyOverviewVO overviewVO = companyOverviewService.getCompanyOverview(queryDTO);
@@ -100,7 +100,7 @@ public class ShopController {
}
@Operation(summary = "获取店铺概览统计数据", description = "获取指定店铺的概览统计数据,包括销售额、单量、推广费、利润、ROI等,以及多商品数据横向汇总")
@PostMapping("/overview-statistics")
@PostMapping("/overview")
@RequirePermission(value = "ecom:shop:read", description = "查询店铺概览统计", allowSuper = true)
public ApiResponse<ShopOverviewStatisticsVO> getShopOverviewStatistics(@Valid @RequestBody ShopOverviewQueryDTO queryDTO) {
ShopOverviewStatisticsVO overviewVO = shopOverviewStatisticsService.getShopOverviewStatistics(queryDTO);
@@ -69,7 +69,7 @@ export async function getShopOverviewStatisticsApi(
params: ShopDTO.OverviewQuery,
) {
return requestClient.post<ShopVO.OverviewStatistics>(
'/ec/shop/overview-statistics',
'/ec/shop/overview',
params,
);
}
@@ -11,7 +11,7 @@ import { requestClient } from '#/api/request';
*/
export async function getCompanyOverviewApi(data: CompanyOverviewDTO.Query) {
return requestClient.post<CompanyOverviewVO.Info>(
'/ec/store-overview/statistics',
'/ec/store/overview',
data,
);
}