mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 23:09:19 +08:00
refactor(api): 分页路径 /page 改为 /list,前后端同步更新
This commit is contained in:
@@ -13,7 +13,7 @@ import { requestClient } from '#/api/request';
|
||||
* 分页获取店铺列表
|
||||
*/
|
||||
export async function getShopPageApi(params: PageQueryDTO<ShopDTO.Filters>) {
|
||||
return requestClient.post<PageResultVO<ShopVO.Info>>('/ec/shop/page', params);
|
||||
return requestClient.post<PageResultVO<ShopVO.Info>>('/ec/shop/list', params);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -64,7 +64,7 @@ export async function getShopProductPageApi(
|
||||
params: PageQueryDTO<ShopDTO.ProductPageFilters>,
|
||||
) {
|
||||
return requestClient.post<PageResultVO<ProductVO.Info>>(
|
||||
'/ec/shop/products/page',
|
||||
'/ec/shop/products/list',
|
||||
params,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user