mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 01:59:20 +08:00
refactor(api): 统一全店/店铺概览接口路径风格
- /ec/store-overview/statistics → /ec/store/overview - /ec/shop/overview-statistics → /ec/shop/overview - 前后端接口路径同步更新
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user