企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 商品列表 ~~~[api] get:/api/v1/goods/lists int:id= #商品分类id *string:name=liangyou#商品分类名 *int:page=1#分页页码 *int:limit=10#分页数量 string:tag= #tag标签 sort=1#排序(参数说明sales_num_desc,price_desc,price_asc,默认为level) <<< success { "msg": "获取成功!", "url": "", "data": { "goods": [ { "id": 1, "adminid": 1, "uid": 0, "category_id": 94, "tags": "优质小米", "uuid": "f1682f7e-425f-a290-9e36-dbb2ea39cf8d", "title": "优质小米", "description": "优质小米", "now_price": "5.00", "pre_price": "5.00", "cover_ids": "[1610]", "level": 0, "position": 1, "content": "<!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n<p>优质小米</p>\n</body>\n</html>", "spu_data": [], "sku_ids": "[1,2]", "comment": 0, "view": 16, "sales_num": 0, "comment_status": "1", "rate": 0, "goods_type": 2, "virtual_data": "", "file_id": 0, "status": 1, "open_at": "2018-05-23 09:30:13", "created_at": "2018-05-23 09:31:51", "updated_at": "2018-05-23 14:35:08", "deleted_at": "", "cover_path0": "https://dev.qa114.com/storage/uploads/pictures/clUCO6GILeOVvCDxdc6XLFIkYRpgynOGqwHaQ9lK.png", "sku_data": [ { "id": 1, "sku_data": "{\"\\u5546\\u5bb6\":\"\\u8096\\u5bb6\\u5e84\\u6751\\u674e\\u6587\\u6770\"}", "stock_num": 100, "sales_num": 0, "now_price": "5.00", "pre_price": "5.00", "promotion_ids": "", "sort": 0, "status": 1, "created_at": "2018-05-23 09:31:36", "updated_at": "2018-05-23 09:31:36", "deleted_at": "", "promotion_title": "" }, { "id": 2, "sku_data": "{\"\\u5546\\u5bb6\":\"\\u5f20\\u5404\\u5e84\\u6751\\u6768\\u6587\\u9759\"}", "stock_num": 100, "sales_num": 0, "now_price": "5.00", "pre_price": "5.00", "promotion_ids": "", "sort": 0, "status": 1, "created_at": "2018-05-23 09:31:49", "updated_at": "2018-05-23 09:31:49", "deleted_at": "", "promotion_title": "" } ] } ], "category": { "id": 94, "uuid": "eb112aaa-225c-667b-59ce-003a997f214a", "uid": 0, "pid": 2, "title": "粮油", "sort": 0, "cover_id": "1605", "name": "liangyou", "description": "粮油", "count": 0, "index_tpl": "goods/index", "lists_tpl": "goods/lists", "detail_tpl": "goods/detail", "page_num": 10, "status": 1, "type": "GOODS", "created_at": "2018-05-22 09:10:19", "updated_at": "2018-05-22 09:25:28", "deleted_at": "" } }, "count": 0, "status": "success" } <<< error { "msg": "无此分类", "url": "", "status": "error" } ~~~