## 获取分类列表树
~~~[api]
post:/admin/permission/category.html
<<<
success
{
"code": 0,
"msg": "获取成功",
"data": {
"id": 0,
"category_id": 0,
"type": 1,
"name": "系统",
"info": "根",
"sort": 0,
"children": [
{
"id": 1,
"category_id": 0,
"type": 1,
"name": "设置",
"info": "整个系统的设置",
"sort": 100,
"children": []
}
]
}
}
~~~
### 返回参数说明
|参数名|类型|说明|
|:----- |:-----|-----|
| category_id | int | 上级ID |
| type | int | 类型:1=分类,2=功能 |
| name | string | 分类或功能名 |
| info | string | 描述信息 |
| sort | int | 排序号:由小到大 |
| children | array | 下级列表(无限级) |