💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
#### 列表 ~~~[api] get:/admin/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:/admin/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:/admin/goods/category/create *number:dealer_id#商家ID *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 { "dealer_id": 1, "stores_id": 1, "parent_id": 0, "name": "分类1" } ~~~ #### 更新 ~~~[api] post:/admin/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:/admin/goods/category/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:16:48", "data": [] } ~~~