多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**简要描述:** - 获取商品列表 **请求URL:** - ` api/goods/getGoodsList ` **请求方式:** - get **参数:** |参数名|是否必选|类型|说明| |:---- |:---|:----- |----- | |category_id |必填 |int |商品分类id | |keyword |选填 |string |搜索关键词 | |sales_sum |选填 |string |销量排序:desc-降序;asc-升序 | |price |选填 |string |价格排序:desc-降序;asc-升序 | **返回示例** ``` { "code": 1, "msg": "获取成功", "data": { "list": [ { "id": 2, "name": "新鲜现做手撕面包蔓越莓抹茶糕点网红零食点心早餐健康奶香食品", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201021/d47d16b1bb9c5cfa169bd1b1c5ccdf07.jpg", "price": "29.90", "market_price": "37.38" }, { "id": 24, "name": "元气食族&西树泡芙联名款 香草味低卡夹心札幌迷你雪泡芙甜点零食", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201020/6b84679d69c3ec10f15c50e8d8824b8a.jpg", "price": "168.00", "market_price": "198.00" } ], "page": 1, "size": 15, "count": 2, "more": 0 } } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |id |int |商品id |name |varchar |商品名称 |image |varchar |商品主图 |price |string |商品价格 |market_price |string |商品市场价 **备注** -