💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
#### 列表 ~~~[api] get:/dealer/goods/sku/index *number:storesId#门店ID string:search#搜索关键词 number:cateId#分类ID number:p=1#当前页数 number:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-06-19 17:57:56", "data": [ { "id": 1, "dealer_id": 1, "stores_id": 1, "cate_id": 1, "name": "测试库存", "sort": 0, "status": 1, "created_at": "2018-06-16 08:07:38", "updated_at": "2018-06-19 17:51:13", "category": { "id": 1, "dealer_id": 1, "stores_id": 1, "parent_id": 0, "parent_id_path": "0_1", "level": 1, "name": "分类一", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "sort": 0, "is_show": 0, "is_hot": 0, "status": 1, "created_at": "2016-01-01 00:00:00", "updated_at": "2018-06-14 11:23:51", "status_text": "正常" }, "item": [ { "id": 1, "sku_id": 1, "name": "测试库存项1", "sort": 0, "status": 1, "created_at": "2018-06-16 08:07:38", "updated_at": "2018-06-19 17:51:13", "status_text": "正常" }, { "id": 2, "sku_id": 1, "name": "测试库存项2", "sort": 0, "status": 1, "created_at": "2018-06-16 08:07:38", "updated_at": "2018-06-19 17:51:13", "status_text": "正常" } ], "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/dealer/goods/sku/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-06-19 17:54:59", "data": { "id": 1, "dealer_id": 1, "stores_id": 1, "cate_id": 1, "name": "测试库存", "sort": 0, "status": 1, "created_at": "2018-06-16 08:07:38", "updated_at": "2018-06-19 17:51:13", "category": { "id": 1, "dealer_id": 1, "stores_id": 1, "parent_id": 0, "parent_id_path": "0_1", "level": 1, "name": "分类一", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "sort": 0, "is_show": 0, "is_hot": 0, "status": 1, "created_at": "2016-01-01 00:00:00", "updated_at": "2018-06-14 11:23:51", "status_text": "正常" }, "item": [ { "id": 1, "sku_id": 1, "name": "测试库存项1", "sort": 0, "status": 1, "created_at": "2018-06-16 08:07:38", "updated_at": "2018-06-19 17:51:13", "status_text": "正常" }, { "id": 2, "sku_id": 1, "name": "测试库存项2", "sort": 0, "status": 1, "created_at": "2018-06-16 08:07:38", "updated_at": "2018-06-19 17:51:13", "status_text": "正常" } ], "status_text": "正常" } } ~~~ #### 创建 ~~~[api] post:/dealer/goods/sku/create *number:cate_id#分类ID *number:stores_id#门店ID *string:name#名称 *array:items#项目 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2017-12-28 13:05:15", "data": [] } <<< example { "stores_id": 1, "cate_id": 1, "name": "测试库存", "items": ["测试库存项1", "测试库存项2"], "srot": 1, "status": 1 } ~~~ #### 更新 ~~~[api] post:/dealer/goods/sku/update/id/:id string:name#名称 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2017-12-28 13:05:15", "data": [] } ~~~ #### 删除 > 删除规格将同时删除规格项目与商品关联规格值,请在页面中提示 ~~~[api] post:/dealer/goods/sku/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2017-12-28 13:05:15", "data": [] } ~~~ #### 更新项目 ~~~[api] post:/dealer/goods/sku/updateItem/id/:id string:name#名称 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2017-12-28 13:05:15", "data": [] } ~~~