feat: 删除商品增加友好提示

This commit is contained in:
2026-08-31 22:08:47 +08:00
parent e889bc043a
commit c586120861
9 changed files with 252 additions and 34 deletions
@@ -37,6 +37,13 @@ export async function deleteShopApi(id: number) {
return requestClient.delete(`/ec/shop/delete/${id}`);
}
/**
* 删除店铺前影响预览
*/
export async function getShopDeleteImpactApi(id: number) {
return requestClient.get<ShopVO.DeleteImpact>(`/ec/shop/delete-impact/${id}`);
}
/**
* 店铺详情(含平台店铺及授权信息)
*/
@@ -55,6 +55,16 @@ export interface PddShopInfo {
}
export namespace ShopVO {
/** 删除店铺影响预览 */
export interface DeleteImpact {
shopId: number;
shopName: string;
orderCount: number;
adFeeCount: number;
fakeOrdersFeeCount: number;
monthlyTargetCount: number;
}
/** 店铺信息 */
export interface Info {
/** 店铺ID */