奢侈品供应链开放平台
实现商品信息、库存和订单的实时同步
| 接口地址 | http://host:port/api/v1/Goods/getGoods | ||
|---|---|---|---|
| 请求头 | |||
| 请求方式 | POST | ||
| 请求体 | "appid":"123456", "nonceStr":"k2f8oYmuCc", "timeStamp":"1679976183975", | ||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | String | 访问凭证 |
| nonceStr | 是 | String | 随机字符串 |
| timeStamp | 是 | String | unix时间戳 |
| page | 否 | int | 页码 默认1 每页返回100条数据 |
| 返回结果 | { "code": 1, "msg": "ok", "time": "1680188911", "data": { "lists": [ { "id": 1305, "category_id": 68, "name": "Alexander McQueen/亚历山大麦昆 女士迷你款皮革骷髅头单肩斜挎包链条包 ", "brandid": 219, "image": "https://aloss.fawet.com/uploads/20230329/1ba17b0878f6e465d2c6477c3a65a937.jpg", "original": "5699.00", "content": "<p> <img src=\"https://aloss.fawet.com/uploads/20230329/a98c7035218d91a3bc681636d20aaab0.jpg\" style=\"width: 450px;\" data-filename=\"filename\"> <img src=\"https://aloss.fawet.com/uploads/20230329/b907881e7f59fb94df46c26ca5ec3e2c.jpg\" style=\"width: 450px;\" data-filename=\"filename\"> <img src=\"https://aloss.fawet.com/uploads/20230329/f268ba90b142a051643d200be9acded7.jpg\" style=\"width: 450px;\" data-filename=\"filename\"> <img src=\"https://aloss.fawet.com/uploads/20230329/d4056cca05f06446286799000f40ddee.jpg\" style=\"width: 450px;\" data-filename=\"filename\"> <img src=\"https://aloss.fawet.com/uploads/20230329/665e4ecd6e92e3ffd65094c614ace46e.jpg\" style=\"width: 450px;\" data-filename=\"filename\"> <img src=\"https://aloss.fawet.com/uploads/20230329/a8fe7fb5406defc9f6aa8eb87c85e660.jpg\" style=\"width: 450px;\" data-filename=\"filename\"> <img src=\"https://aloss.fawet.com/uploads/20230329/5b5116830e3e05ce49867b97f1f2a182.jpg\" style=\"width: 450px;\" data-filename=\"filename\"> <img src=\"https://aloss.fawet.com/uploads/20230329/d5a713359dade8a0973aadc9175e70df.jpg\" style=\"width: 450px;\" data-filename=\"filename\"><br></p>", "stock_num": 1, "is_specs": 0, "color": "黑色", "size": "", "third_barcode": "6130881CW0V", "status": 1, "brand_name": "压力山大麦昆", "category_name": "斜挎包", "spec": [], "price": "3550.48" } ], "currentPage": 1, "hasMore": true, "totalPage": 222 } } | ||
| 字段名 | 类型 | 说明 | |
| code | int | 是否正确处理请求,返回1或0 | |
| msg | String | 处理结果的消息 | |
| time | String | 请求时间戳 | |
| data | list | 请求数据结果集 | |
| data.list | list | 商品实体信息 | |
| data.list.id | int | 商品id | |
| data.list.category_id | int | 商品分类id | |
| data.list.name | string | 商品名称 | |
| data.list.brandid | int | 商品所属品牌id | |
| data.list.image | string | 商品封面 | |
| data.list.content | text | 商品详情(富文本) | |
| data.list.original | float | 专柜价 | |
| data.list.price | float | 结算价 | |
| data.list.stock_num | int | 库存 | |
| data.list.is_specs | int | 是否为多规格 1=是 0=否 | |
| data.list.color | string | 规格:颜色 | |
| data.list.size | string | 规格:尺寸 | |
| data.list.third_barcode | string | 商品条形码 | |
| data.list.status | enum | 状态 1=上架 0=下架 | |
| data.list.brand_name | string | 品牌名称 | |
| data.list.category_name | string | 分类名称 | |
| data.list.spec | list | 规格集合 只有is_specs为1是才有值 | |
| currentPage | int | 当前页码 | |
| hasMore | bool | 是否有下页 true=有下页 false=无下页 | |
| totalPage | int | 总页码 | |