简要描述:
- 获取门店商品列表
请求域名:
- http://xx.com
请求URL:
POST:plugin.store-cashier.frontend.store.goods.get-goods-list
APP请求URL:
POST:plugin.store-cashier.frontend.app.store.goods.get-goods-list
参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| store_id | 是 | string | 门店ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取商品成功",
"data": {
"goods_data": {
"current_page": 1,
"data": [
{
"id": 228,
"title": "轻微门店商品iii8",
"stock": 116,
"price": "164.00",
"real_sales": 8,
"thumb": "http://localhost/attachment/images/6/2018/06/hZqM1jQqjFmBhQ5JqQ48qSF5dmMMQZ.jpg",
"status": 0,
"virtual_sales": 141,
"commission_type": 1,
"platform_alone_switch": 0,
"platform_rate": "0.00",
"store_name": "顺通石化测试站",
"store_id": 8,
"change_thumb": "http://localhost/attachment/images/6/2018/06/hZqM1jQqjFmBhQ5JqQ48qSF5dmMMQZ.jpg",
"vip_price": "164.00",
"vip_level_status": {
"status": 0,
"word": "",
"tips": ""
},
"vip_next_price": "164.00",
"price_level": "1",
"is_open_micro": "1",
},
{
"id": 229,
"title": "配送站-服务站",
"stock": 1235,
"price": "100.00",
"real_sales": 129,
"thumb": "images/6/2018/09/twzWx2xUCnG2CCwWwDCEcc2k2weE2C.jpg",
"status": 0,
"virtual_sales": 123,
"commission_type": 1,
"platform_alone_switch": null,
"platform_rate": null,
"store_name": "顺通石化测试站",
"store_id": 8,
"change_thumb": "images/6/2018/09/twzWx2xUCnG2CCwWwDCEcc2k2weE2C.jpg",
"vip_price": "100.00",
"vip_level_status": {
"status": 0,
"word": "",
"tips": ""
},
"vip_next_price": "100.00",
"price_level": "1",
}
],
"last_page": 1,
"per_page": 15,
"total": 3
},
"count": 3,
"store_id": 8,
"goods_stock": 252,
"front_commission_set_auth": 0,
"front_commission_set_name": "平台提成",
"store_platform_range_min": 0,
"store_platform_range_max": 100
}
}
错误时返回:
{
"result": 0,
"msg": "无商品数据"
}
goods_data参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| count | int | 商品数量 |
| store_id | int | 门店ID |
| goods_stock | int | 商品总库存 |
| front_commission_set_auth | int | 是否开启平台比例设置:1开启0关闭 |
| front_commission_set_name | string | 平台比例设置名称 |
| store_platform_range_min | int | 平台提成比例范围:最小值 |
| store_platform_range_max | int | 平台提成比例范围:最大值 |
goods_data返回参数说明(分页):
| 参数名 | 类型 | 说明 |
|---|---|---|
| current_page | int | 当前页数 |
| per_page | int | 每页条数 |
| to | int | 当前页条数 |
| total | int | 总条数(直推人数) |
| data | array | 内容数据 |
goods_data.data参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| title | string | 商品名称 |
| stock | string | 商品库存 |
| price | string | 商品价格 |
| real_sales | string | 商品名称 |
| change_thumb | string | 商品图片地址 |
| platform_alone_switch | int | 是否开启平台提成独立设置:1是0否 |
| platform_rate | int | 商品平台提成比例 |
备注:
- 更多返回错误代码请看首页的错误代码描述