某用户出售的书
分页查看指定用户正在出售的书,做卖家主页、店铺页时用。
| 请求方式 | GET/POST |
|---|---|
| 接口路径 | /api/goods/list |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
|---|---|---|---|
curPage | Integer | 是 | URL 参数 |
userId | Long | 否 | URL 参数 |
pageSize | Integer | 是 | URL 参数 |
name | String | 否 | URL 参数 |
curl 调用
curl -s 'https://www.8shu8.com/api/goods/list?curPage=1&userId=1&pageSize=1&name=xxx' \ -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
data 为分页对象,业务数据在 records。
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"records": [
{
"name": "string",
"primaryPicUrl": "string",
"marketPrice": 0.0,
"headPhotoUrl": "string",
"promotionDesc": "string",
"id": 1,
"goodsStatus": "...",
"goodsSn": "string",
"fullText": "string",
"goodsNumber": 1,
"addTime": "string",
"retailPrice": 0.0,
"sellVolume": 1,
"createUserId": 1,
"updateTime": "string",
"shopId": 1,
"lat": 0.0,
"lon": 0.0,
"pushTime": "string",
"isSelfSell": true,
"goodsId": 1,
"expiredTime": "string",
"skuId": "string",
"second": true,
"distance": 0.0,
"recyclePrice": 0.0,
"storeId": 1,
"bookCondition": "string",
"images": [
"string"
],
"categoryId": "string",
"itemSn": "string",
"isbn": "string",
"author": "string",
"publisher": "string"
}
],
"total": 0,
"size": 10,
"current": 1,
"pages": 0
}
}