PublicProductLibrary
kds-plugin-document / Exports / PublicProductLibrary
Interface: PublicProductLibrary
酷家乐公共商品库
The public product library.
Table of contents
Properties
Properties
getCategory
• getCategory: () => Promise
<{ categoryId
: number
; name
: string
}[]>
Type declaration
▸ (): Promise
<{ categoryId
: number
; name
: string
}[]>
获取公共商品库类目
Get category list of public product.
Returns
Promise
<{ categoryId
: number
; name
: string
}[]>
The category id and name.
Defined in
api.d.ts:11478
getProductList
• getProductList: (categoryId
: number
, start
: number
, count
: number
, lang?
: string
) => Promise
<{ brandgoodId
: string
; name
: string
; previewImgUrl
: string
}[]>
Type declaration
▸ (categoryId
, start
, count
, lang?
): Promise
<{ brandgoodId
: string
; name
: string
; previewImgUrl
: string
}[]>
获取某一类目下的商品列表
Get product list of a category.
Parameters
Name | Type | Description |
---|---|---|
categoryId | number | category id |
start | number | start |
count | number | count |
lang? | string | the language |
Returns
Promise
<{ brandgoodId
: string
; name
: string
; previewImgUrl
: string
}[]>
The brandgoodId, name and previewImgUrl.
Defined in
api.d.ts:11490