mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 05:49:20 +08:00
refactor: 把外部平台归到channel层
This commit is contained in:
@@ -6,7 +6,7 @@ import { requestClient } from '#/api/request';
|
||||
* 获取拼多多店铺授权跳转 URL(绑定指定内部店铺)
|
||||
*/
|
||||
export async function getPddAuthorizeUrlApi(shopId: number) {
|
||||
return requestClient.get<PddAuthVO.AuthorizeUrl>('/ec/pdd/auth/authorize-url', {
|
||||
return requestClient.get<PddAuthVO.AuthorizeUrl>('/channel/pdd/auth/authorize-url', {
|
||||
params: { shopId },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ export async function syncPddOrdersByDayApi(data: {
|
||||
shopId: number;
|
||||
confirmDate: string;
|
||||
}) {
|
||||
return requestClient.post<PddOrderSyncVO.Result>('/ec/pdd/order/sync/day', data);
|
||||
return requestClient.post<PddOrderSyncVO.Result>('/channel/pdd/order/sync/day', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -17,7 +17,7 @@ export async function syncPddOrdersByDayApi(data: {
|
||||
*/
|
||||
export async function syncPddOrdersIncrementalApi(shopId: number) {
|
||||
return requestClient.post<PddOrderSyncVO.Result>(
|
||||
'/ec/pdd/order/sync/incremental',
|
||||
'/channel/pdd/order/sync/incremental',
|
||||
undefined,
|
||||
{ params: { shopId } },
|
||||
);
|
||||
|
||||
@@ -9,12 +9,12 @@ export async function getPddOrderPageApi(
|
||||
params: PageQueryDTO<PddOrderDTO.Filters>,
|
||||
) {
|
||||
return requestClient.post<PageResultVO<PddOrderVO.Info>>(
|
||||
'/ec/pdd/order/list',
|
||||
'/channel/pdd/order/list',
|
||||
params,
|
||||
);
|
||||
}
|
||||
|
||||
/** 拼多多订单详情(含明细) */
|
||||
export async function getPddOrderDetailApi(id: number) {
|
||||
return requestClient.get<PddOrderVO.Info>(`/ec/pdd/order/detail/${id}`);
|
||||
return requestClient.get<PddOrderVO.Info>(`/channel/pdd/order/detail/${id}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user