文档
测试

部门列表页树状图

POST
/system/department/parentlist

接口描述

author:mql

响应参数

参数名
类型
描述
必填
code
int
状态 200:成功 201:失败
必填
data
array
必填
id
int
部门id
必填
pid
int
上级部门id
必填
name
string
部门名称
必填
children
object
子部门信息
必填
id
int
部门id
必填
pid
int
上级部门id
必填
name
string
部门名称
必填
children
object
子部门信息
必填

说明 / 示例

{ "code": 200, "data": [ { "id": 7, "pid": 0, "name": "设计部门", "children": [] }, { "id": 2, "pid": 0, "name": "保安部", "children": [ { "id": 5, "pid": 2, "name": "保安一部", "children": [] } ] }, { "id": 1, "pid": 0, "name": "客服部", "children": [ { "id": 3, "pid": 1, "name": "客服一部", "children": [ { "id": 6, "pid": 3, "name": "客服一部(分部)", "created_at": "1970-01-02 10:30:34", "updated_at": null, "deleted_at": null, "children": [] } ] }, { "id": 4, "pid": 1, "name": "客服二部", "children": [] } ] } ] }