多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**简要描述:** - 商品列表 **请求URL:** - `/adminapi/goods.goods/commonLists` **请求方式:** - GET **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |name |否|string |名称搜索| |is_spec |否|int |不传或传0不显示规格信息;传1显示规格信息| **返回示例** ``` { "code": 1, "show": 0, "msg": "", "data": { "lists": [ { "id": 55, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级31234sa", "image": "123.png", "total_stock": 1000, "spec_type": 2, "sales_num": 220, "max_price": "2999.00", "max_lineation_price": "0.00", "sell_price": "2999.00", "lineation_price": "0.00", "spec_value_list": [ { "id": 163, "image": "", "goods_id": 55, "spec_value_ids": "174,175", "spec_value_str": "黑巧风暴,4G", "stock": 1000, "sell_price": "2999.00" } ], "price": "¥2999.00" } ], "count": 1, "page_no": 1, "page_size": 25, "extend": [] } } ``` **返回参数说明:** |参数名 |类型 |说明 | |:--| |id |int |id| |name |string |商品名称| |image |string |商品图片| |total_stock |int |总库存| |sales_num |int |商品销量| |max_price |float |最大价| |max_lineation_price |float |最大划线价| |sell_price |float |售价(最小价)| |lineation_price |float |划线价(最小划线价)| |spec_type |int |商品类型:1-单规格;2-多规格| |spec_value_list |array |商品规格列表;单规格时为空| |--id |int |规格id| |--image |string |规格图片| |--spec_value_ids |string |规格ids| |--spec_value_str |string |规格名称| |--stock |int |规格库存| |--sell_price |float |商品售价|