接口文档 / 商品接口
获取商品列表
响应参数
| 名称 | 说明 | 类型 |
|---|---|---|
| Body 参数 | ||
data可选 | object | |
rows可选 | array<object> | |
total可选 | integer | |
offset可选 | integer | |
limit可选 | integer | |
error可选可为空 | object | |
响应示例
{
"data": {
"rows": [
{
"id": "string",
"shortId": "string",
"name": "string",
"specification": "string",
"typeId": 0,
"typeName": "string",
"combineType": 0,
"pieceNum": 5,
"pieceUnit": "片",
"packageUnit": "盒",
"lastModified": "2022-05-13 12:22:56",
"status": 1,
"disableSell": 0
}
],
"total": 100,
"offset": 0,
"limit": 10
},
"error": null
}业务失败包装示意
{
"data": null,
"error": {
"code": 11003,
"message": "不支持的授权类型{grantType}"
}
}