获取店铺商品列表
GET {{base_url}}/shop/getShopGoodsList
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
shop_id |
string | 1 | 店铺ID | 1 |
cate_id |
string | 1 | 分类id | 3 |
shop_type |
string | 1 | 店铺类型 | 1 |
goods_name |
string | 0 | 商品关键字 | 单人套餐 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"goods_id": 1,
"uid": 4,
"library_id": 0,
"shop_id": 1,
"shop_type": 2,
"cate_id": "1,3",
"bar_code": "A000000001",
"goods_name": "香辣鸡翅",
"goods_logo": "goods/2020-04-15/5e96e85c35f1c.jpg",
"goods_tags": null,
"price": "10.00",
"price_old": "10.00",
"num": 100,
"monthly_sale": 0,
"goods_describe": "",
"status": 1,
"create_at": "2020-04-15 00:00:00",
"update_at": 1586948188
},
{
"goods_id": 2,
"uid": 4,
"library_id": 0,
"shop_id": 1,
"shop_type": 2,
"cate_id": "1,3",
"bar_code": "A000000002",
"goods_name": "奥尔良鸡翅",
"goods_logo": "goods/2020-04-15/5e96e87b772cc.png",
"goods_tags": null,
"price": "10.00",
"price_old": "10.00",
"num": 100,
"monthly_sale": 0,
"goods_describe": "",
"status": 1,
"create_at": "2020-04-15 00:00:00",
"update_at": 1586948219
}
],
"first_page_url": "http://chicken.com/module/chickenshop/shop/getShopGoods?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://chicken.com/module/chickenshop/shop/getShopGoods?page=1",
"next_page_url": null,
"path": "http://chicken.com/module/chickenshop/shop/getShopGoods",
"per_page": 15,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
文档更新时间: 2020-08-19 11:33 作者:nianwang