token: ********************
curl --location --request GET 'http://cmi-api.gleg.site/api/permissions/treeForCustomRole' \
--header 'token;'
{
"code": 0,
"msg": "string",
"data": [
{
"id": 0,
"pid": 0,
"path": "string",
"route_name": "string",
"show_name": "string",
"url": "string",
"is_menu": true,
"sys_type": 0,
"created_at": 0,
"created_by": 0,
"updated_at": 0,
"updated_by": 0,
"deleted_at": null,
"deleted_by": null,
"pivot": {
"role_id": 0,
"permission_id": 0
},
"children": [
{
"id": 0,
"pid": 0,
"path": "string",
"route_name": "string",
"show_name": "string",
"url": "string",
"is_menu": true,
"sys_type": 0,
"created_at": 0,
"created_by": 0,
"updated_at": 0,
"updated_by": 0,
"deleted_at": null,
"deleted_by": null,
"pivot": {
"role_id": 0,
"permission_id": 0
},
"level": 0
}
],
"level": 0
}
]
}