“id”: 2,
“name”: “eryang”,
“password”: “wangtao”,
“create_time”: null,
“update_time”: null,
“roleuser”: [
{
“id”: 2,
“role”: “员工”,
“rolepermission”: [
{
“id”: 1,
“name”: “编辑用户列表”,
“url”: “/user/update”,
“create_time”: null,
“update_time”: null,
“pivot”: {
“Id”: 2,
“rid”: 1,
“pid”: 2
}
},
{
“id”: 2,
“name”: “查看用户列表”,
“url”: “/user”,
“create_time”: null,
“update_time”: null,
“pivot”: {
“Id”: 3,
“rid”: 2,
“pid”: 2
}
}
],
“pivot”: {
“id”: 2,
“rid”: 2,
“uid”: 2
}
}
]
比如想获取这个 “name”: “编辑用户列表”,