💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**简要描述:** - 获取商品 **请求URL:** - `/adminapi/goods.goods/lists` **请求方式:** - GET **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |type |是 |int |商品列表类型:0-全部;1-销售中;2-库存预警;3-已售罄;4-仓库中 | |keyword |否 |string |关键词搜索 | |category_id |否 |int |分类搜索 | |supplier_id |否 |int |供应商搜索 | |min_price |否 |float |最小价 | |max_price |否 |float |最大价 | **返回示例** ``` { "code": 1, "show": 0, "msg": "", "data": { "lists": [ { "id": 62, "name": "舒客儿j童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级31234sss12ja", "code": "122222j123s4s212ws", "image": [ "123.png", "12223.png", "122223233.png" ], "min_price": "2999.00", "max_price": "2999.00", "total_stock": 2000, "sales_num": 0, "click_num": 0, "status": 1, "sort": 20, "price": "¥2999.00", "category_name": [ "分类1", "分类1/分类2-1", "分类1/分类2-1/分类3-1", "分类1/分类2-1/分类3-2" ] }, { "id": 60, "name": "舒客儿j童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级31234ss12ja", "code": "122222j123s4212ws", "image": [ "123.png", "12223.png", "122223233.png" ], "min_price": "2999.00", "max_price": "2999.00", "total_stock": 2000, "sales_num": 0, "click_num": 0, "status": 1, "sort": 20, "price": "¥2999.00", "category_name": [ "分类1", "分类1/分类2-1", "分类1/分类2-1/分类3-1", "分类1/分类2-1/分类3-2" ] }, { "id": 57, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级31234ss1a", "code": "122222123s421ws", "image": [ "123.png", "12223.png", "122223233.png" ], "min_price": "2999.00", "max_price": "2999.00", "total_stock": 1000, "sales_num": 0, "click_num": 0, "status": 1, "sort": 20, "price": "¥2999.00", "category_name": [ "分类1", "分类1/分类2-1", "分类1/分类2-1/分类3-1", "分类1/分类2-1/分类3-2" ] }, { "id": 56, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级31234s1a", "code": "122222123421ws", "image": [ "123.png", "12223.png", "122223233.png" ], "min_price": "2999.00", "max_price": "2999.00", "total_stock": 1000, "sales_num": 0, "click_num": 0, "status": 1, "sort": 20, "price": "¥2999.00", "category_name": [ "分类1", "分类1/分类2-1", "分类1/分类2-1/分类3-1", "分类1/分类2-1/分类3-2" ] }, { "id": 55, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级31234sa", "code": "12222212341ws", "image": [ "123.png", "12223.png", "122223233.png" ], "min_price": "2999.00", "max_price": "2999.00", "total_stock": 1000, "sales_num": 0, "click_num": 0, "status": 1, "sort": 20, "price": "¥2999.00", "category_name": [ "分类1", "分类1/分类2-1", "分类1/分类2-1/分类3-1", "分类1/分类2-1/分类3-2" ] } ], "count": 5, "page_no": 1, "page_size": 25, "extend": { "all_count": 10, "sales_count": "6", "warning_count": "1", "sellout_count": "0", "storage_count": "4" } } } ``` **返回参数**:** |参数名 |类型 |说明 | | ------ | ------ | ------ |------ | |id |string |商品名称 | |code |string |商品编码| |name |string |商品名称 | |image |string |商品图片 | |category_name |array |分类名称 | |total_stock |int |总库存| |status |int |状态:1-销售中;2-仓库| |price |int |价格| |sales_num |float |商品销量| |click_num |int |点击量| |sort |string |排序| |spec_type |int |规格类型:1-单规格;2-多规格| |create_time |string |创建时间| |extend|int|其他数据| |all_count|int|全部数量| |sales_count|int|销售中数量| |warning_count|int|预警数量| |sellout_count|int|售罄数量| |storage_count|int|仓库中数量|