企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
#### 列表 ~~~[api] get:/dealer/goods/category/index *number:storesId#门店ID number:parentId=0#父ID <<< success { "code": 1, "msg": "", "time": "2018-06-14 11:27:55", "data": [ { "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", "children": [], "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 1000 } } ~~~ #### 详情 ~~~[api] get:/dealer/goods/category/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-06-14 11:24:54", "data": { "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": "正常" } } ~~~ #### 创建 ~~~[api] post:/dealer/goods/category/create *number:stores_id#门店ID *number:parent_id#父ID *string:name#名称 string:thumb=http://oss.dgyouduo.com/static/img/no-image.png#缩略图 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:16:48", "data": [] } <<< example { "stores_id": 1, "parent_id": 0, "name": "分类1" } ~~~ #### 更新 ~~~[api] post:/dealer/goods/category/update/id/:id string:name#名称 string:thumb=http://oss.dgyouduo.com/static/img/no-image.png#缩略图 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:16:48", "data": [] } ~~~ #### 删除 ~~~[api] post:/dealer/goods/category/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:16:48", "data": [] } ~~~