企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
#### 列表 ~~~[api] get:/admin/template/category/index number:parentId=0#父ID <<< success { "code": 1, "msg": "", "time": "2018-08-07 16:07:16", "data": [ { "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": "2018-08-07 15:52:44", "updated_at": "2018-08-07 15:52:44", "children": [], "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 1000 } } ~~~ #### 详情 ~~~[api] get:/admin/template/category/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-08-07 15:57:57", "data": { "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": "2018-08-07 15:52:44", "updated_at": "2018-08-07 15:52:44", "status_text": "正常" } } ~~~ #### 创建 ~~~[api] post:/admin/template/category/create *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 { "parent_id": 0, "name": "分类1" } ~~~ #### 更新 ~~~[api] post:/admin/template/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/template/category/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:16:48", "data": [] } ~~~