参数 | 参数类型 | 必须 | 说明 |
---|---|---|---|
goodId | string | 是 | 产品ID |
参数 | 类型 | 说明 |
---|---|---|
goodId | string | 产品ID |
title | string | 产品名称 |
internalTitle | string | 产品内部名称 |
price | decimal | 价格 |
imgUrl | string | 产品封面图 |
descImgUrls | string[] | 产品主图 |
spec | string | 规格 |
artNo | string | 货号 |
weight | decimal | 产品重量 以KG为单位 |
quantity | int | 数量 |
dangerQuantity | int | 预警数量 |
description | string | 产品描述 |
isOnSales | bool | 是否上架 |
hasSKU | bool | 是否有SKU |
hasRetailPrice | bool | 是否有代发价格 |
isGroupSale | bool | 是否是组合产品 |
sort | int | 产品排序位置 |
isDelete | bool | 是否已删除 |
levelPrices | 数组 | 会员等级价 |
createTime | dateTime | 创建时间 |
a) 正确的JSON返回结果示例:
{ "success": true, "status": 0, "data": { "goodId": "9b16b490-9f9b-e811-80c5-8c451620948b", "title": "夏装2018新款纯棉宽松大码休闲女装体恤", "internalTitle": "白色t恤女短袖", "price": 78, "imgUrl": "", "descImgUrls": [], "spec": "1", "artNo": "1", "weight": 1, "quantity": 795, "dangerQuantity": 1, "description": "", "isOnSales": true, "hasSKU": true, "hasRetailPrice": true, "isGroupSale": false, "sort": 1, "isDelete": false, "levelPrices": [ { "levelId": 1, "skuId": "e2f44f22-6cab-e811-80c5-8c451620948b", "price": 78 }, { "levelId": 2, "skuId": "e2f44f22-6cab-e811-80c5-8c451620948b", "price": 100 } ], "createTime": "2018/08/09 14:43:51", } }
b) 错误的JSON返回示例:
{ "success": false, "status": 1, "message":找不到指定的商品 }