feat: 发布商品选中类目后校验店铺发布权并提示

This commit is contained in:
2026-09-11 22:24:49 +08:00
parent 6ac55fe5d4
commit d2e887e61a
8 changed files with 206 additions and 2 deletions
@@ -41,6 +41,16 @@ export async function listPddPublishCatsApi(
);
}
/** 校验类目路径是否有发布权 */
export async function checkPddPublishCatAuthApi(
data: PddGoodsPublishDTO.CatAuthQuery,
) {
return requestClient.post<PddGoodsPublishVO.CatAuth>(
'/channel/pdd/goods/publish/meta/check-cat-auth',
data,
);
}
/** 运费模板列表 */
export async function listPddPublishLogisticsApi(
data: PddGoodsPublishDTO.LogisticsQuery,
@@ -63,6 +63,12 @@ export namespace PddGoodsPublishDTO {
parentCatId?: number;
}
export interface CatAuthQuery {
pddShopId: number;
/** 根 → 叶 */
catPath: number[];
}
export interface LogisticsQuery {
pddShopId: number;
page?: number;
@@ -104,6 +110,12 @@ export namespace PddGoodsPublishVO {
leaf?: boolean;
}
export interface CatAuth {
authorized: boolean;
failedCatId?: number;
message?: string;
}
export interface LogisticsPage {
totalCount?: number;
templates?: LogisticsTemplate[];