简要描述:
-供应链租赁--商品列表
请求域名:
- http://xx.com
请求URL:
plugin.yz-supply-lease.api.goods.goods-list
请求 参数::
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page | 否 | int | 分页 |
search | 否 | object | 搜索对象 |
{ | |||
keyword | 否 | string | 搜索关键词 |
region | 否 | int | 地区id |
supplier_id | 否 | int | 中台供应商id |
brand | 否 | int | 品牌id |
cate | 否 | int | 分类id |
} | |||
sort | 否 | object | 排序对象 |
{ | |||
type | 否 | string | 可选(show_sales 销量 min_price 价格) |
direction | 否 | int | 方向 asc desc |
} |
返回示例:
正确时返回:
{
"result": 1,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 631,
"goods_id": 631,
"name": "测试",
"cover": "https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/202314/1672803678获取公众号当前信息.png",
"price": "0.00"
},
{
"id": 632,
"goods_id": 632,
"name": "测试",
"cover": "https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/202314/1672803678获取公众号当前信息.png",
"price": "5000.00"
},
{
"id": 633,
"goods_id": 633,
"name": "测试",
"cover": "https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/202314/1672803678获取公众号当前信息.png",
"price": "0.00"
}
],
"first_page_url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://119.91.205.224//addons/yun_shop/api.php",
"per_page": 10,
"prev_page_url": null,
"to": 3,
"total": 3
}
}
返回参数data说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 供应商id |
name | string | 供应商名称 |