文档
测试

获取商品规格信息

POST
/shopCart/v1/viewSpecs

请求头

参数名
类型
描述
必填
Content-Type
string
application/json
必填

请求参数

参数名
类型
描述
必填
productId
int
商品id
必填

响应参数

参数名
类型
描述
必填
productSpecification
array
规格
必填

请求示例

``` { "productId":35777 } ```

说明 / 示例

``` { "code": 1000, "msg": "操作成功", "data": { "product": { "productId": 35777, "categoryId": 6230, "storeId": 1, "productName": "测试商品11", "price": 11.55, "monthlySalesVolume": 160, "totalSalesVolume": 21, "coverImage": "https://norben-storage.oss-cn-hangzhou.aliyuncs.com/tests/用户.jpg", "shelfDate": "2021-11-09 15:20:37", "productParameter": { "品牌": "cherry", "型号": "MX10.0机械键盘" }, "productSpecification": { "颜色分类": [ "白色", "黑色", "蓝色", "红色" ], "尺码": [ "34", "35", "36", "37" ] }, "supply": "四川省成都市", "favoritesCount": 1, "productServices": null }, "productPreviewImages": null, "productDetailsImages": null, "store": null, "detailsPageCommentsBO": null, "commentCount": 0, "pageCommentCount": 0, "specsImages": null, "specsCount": 16, "stock": 759203702 } } ```