mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 10:29: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 = "全店铺概览统计接口")
|
@Tag(name = "电商-全店铺概览", description = "全店铺概览统计接口")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/ec/store-overview")
|
@RequestMapping("/ec/store")
|
||||||
public class CompanyOverviewController {
|
public class CompanyOverviewController {
|
||||||
|
|
||||||
private final CompanyOverviewService companyOverviewService;
|
private final CompanyOverviewService companyOverviewService;
|
||||||
@@ -25,7 +25,7 @@ public class CompanyOverviewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "获取全店铺概览统计数据", description = "获取当前公司所有店铺的概览统计数据,包括销售额、单量、推广费、利润、ROI等")
|
@Operation(summary = "获取全店铺概览统计数据", description = "获取当前公司所有店铺的概览统计数据,包括销售额、单量、推广费、利润、ROI等")
|
||||||
@PostMapping("/statistics")
|
@PostMapping("/overview")
|
||||||
@RequirePermission(value = "ecom:shop:read", description = "查询全店铺概览", allowSuper = true)
|
@RequirePermission(value = "ecom:shop:read", description = "查询全店铺概览", allowSuper = true)
|
||||||
public ApiResponse<CompanyOverviewVO> getCompanyOverview(@Valid @RequestBody CompanyOverviewQueryDTO queryDTO) {
|
public ApiResponse<CompanyOverviewVO> getCompanyOverview(@Valid @RequestBody CompanyOverviewQueryDTO queryDTO) {
|
||||||
CompanyOverviewVO overviewVO = companyOverviewService.getCompanyOverview(queryDTO);
|
CompanyOverviewVO overviewVO = companyOverviewService.getCompanyOverview(queryDTO);
|
||||||
|
|||||||
+1
-1
@@ -100,7 +100,7 @@ public class ShopController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "获取店铺概览统计数据", description = "获取指定店铺的概览统计数据,包括销售额、单量、推广费、利润、ROI等,以及多商品数据横向汇总")
|
@Operation(summary = "获取店铺概览统计数据", description = "获取指定店铺的概览统计数据,包括销售额、单量、推广费、利润、ROI等,以及多商品数据横向汇总")
|
||||||
@PostMapping("/overview-statistics")
|
@PostMapping("/overview")
|
||||||
@RequirePermission(value = "ecom:shop:read", description = "查询店铺概览统计", allowSuper = true)
|
@RequirePermission(value = "ecom:shop:read", description = "查询店铺概览统计", allowSuper = true)
|
||||||
public ApiResponse<ShopOverviewStatisticsVO> getShopOverviewStatistics(@Valid @RequestBody ShopOverviewQueryDTO queryDTO) {
|
public ApiResponse<ShopOverviewStatisticsVO> getShopOverviewStatistics(@Valid @RequestBody ShopOverviewQueryDTO queryDTO) {
|
||||||
ShopOverviewStatisticsVO overviewVO = shopOverviewStatisticsService.getShopOverviewStatistics(queryDTO);
|
ShopOverviewStatisticsVO overviewVO = shopOverviewStatisticsService.getShopOverviewStatistics(queryDTO);
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export async function getShopOverviewStatisticsApi(
|
|||||||
params: ShopDTO.OverviewQuery,
|
params: ShopDTO.OverviewQuery,
|
||||||
) {
|
) {
|
||||||
return requestClient.post<ShopVO.OverviewStatistics>(
|
return requestClient.post<ShopVO.OverviewStatistics>(
|
||||||
'/ec/shop/overview-statistics',
|
'/ec/shop/overview',
|
||||||
params,
|
params,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { requestClient } from '#/api/request';
|
|||||||
*/
|
*/
|
||||||
export async function getCompanyOverviewApi(data: CompanyOverviewDTO.Query) {
|
export async function getCompanyOverviewApi(data: CompanyOverviewDTO.Query) {
|
||||||
return requestClient.post<CompanyOverviewVO.Info>(
|
return requestClient.post<CompanyOverviewVO.Info>(
|
||||||
'/ec/store-overview/statistics',
|
'/ec/store/overview',
|
||||||
data,
|
data,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user