mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 01:09:19 +08:00
feat: 发布商品选中类目后校验店铺发布权并提示
This commit is contained in:
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user