简要描述:
- 商品管理中已上架商品/仓库中商品列表
请求URL:
POST/wapstore/addons/execute/addons/store/controller/wapstore/action/getGoodsList
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
category_id | 是 | int | 一级分类id |
type | 是 | int | 类型 1:已上架商品的一级分类 2:仓库中商品的一级分类 |
page_index | 否 | int | 分页第几页 |
page_size | 否 | int | 分页大小,默认14 |
search_text | 否 | string | 搜索关键字 |
返回示例:
正确时返回:
{
"code": 1,
"message": "获取成功",
"data": {
goods_info[
0[
bar_code: ""
category_id: 71
category_id_1: 67
category_id_1_name: "手机"
category_id_2: 68
category_id_3: 71
create_time: 1569723284
goods_id: 800
goods_img:[
0: ["https://vslai-com-cn.oss-cn-hangzhou.aliyuncs.com/upload/26/2019/09/26/16/1569485199980.jpg"]
1: ["http://vslai-com-cn.oss-cn-hangzhou.aliyuncs.com/upload/26/common/1555495723.png"]
]
goods_name: "tets"
id: 88
img_id_array: ["3149", "2891"]
0: "3149"
1: "2891"
market_price: "1.00"
picture: 3149
price: "1.00"
sales: 0
shop_id: 0
status: 0
stock: 1
store_id: 13
website_id: 26
]
]
"total_count": 3,
"page_count": 1
}
}
参数名 | 类型 | 说明 |
---|---|---|
goods_info | array | 商品列表 |
goods_img | array | 商品图片 |
goods_name | string | 商品名称 |
stock | int | 库存 |
sales | int | 销量 |
price | float | 商品售价 |
market_price | float | 商品市场价 |