docs: 发布 DTO 图片字段注释与 pdd.goods.add 文档对齐

This commit is contained in:
2026-10-19 10:36:25 +08:00
parent 641520eaa8
commit f2556c58cc
6 changed files with 29 additions and 6 deletions
@@ -2,7 +2,7 @@
export namespace PddGoodsPublishDTO {
export interface Publish {
pddShopId: number;
/** 关联系统草稿:发布成功后回写 goods_commit_id */
/** 关联系统草稿 ID;正式发布成功后更新草稿状态并累加店铺发布次数 */
systemDraftId?: number;
goodsName: string;
goodsDesc?: string;
@@ -16,9 +16,11 @@ export namespace PddGoodsPublishDTO {
secondHand: boolean;
/** 满2件折扣 0-100,默认 95 */
twoPiecesDiscount: number;
/** fileId 字符串或已转传的 URL */
/** 轮播图 carousel_gallery(必填);fileId 或已转传 URL,规格见 pdd.goods.add */
carouselImages: string[];
/** 详情图 detail_gallery(必填);fileId 或已转传 URL */
detailImages: string[];
/** 商品主图 image_url(可选,部分活动必填);与轮播图不同,750×352 等见 pdd.goods.add */
imageUrl?: string;
goodsProperties?: GoodsProperty[];
skus: PublishSku[];
@@ -46,6 +48,7 @@ export namespace PddGoodsPublishDTO {
multiPriceFen: number;
quantity: number;
weight: number;
/** SKU 缩略图 thumb_url(必填);fileId 或已转传 URL */
thumbImage: string;
specIdList: string;
isOnsale?: number;