[ [ 'id' => 1, 'title' => '玩家数据', 'icon' => 'layui-icon-set', 'controller' => '', 'url' => '', 'sort' => 1, 'level' => 1, 'parent_id' => 0, 'children' => [ [ 'id' => 11, 'title' => '玩家列表', 'icon' => 'layui-icon-user', 'controller' => 'User', 'url' => '/user/list', 'sort' => 1, 'level' => 2, 'parent_id' => 1, ] ] ], [ 'id' => 2, 'title' => '游戏调控', 'icon' => 'layui-icon-store', 'controller' => '', 'url' => '', 'sort' => 2, 'level' => 1, 'parent_id' => 0, 'children' => [ [ 'id' => 21, 'title' => '游戏配置', 'icon' => 'layui-icon-audit', 'controller' => 'MerchantAudit', 'url' => '/merchant/audit', 'sort' => 2, 'level' => 2, 'parent_id' => 2, 'children' => [ [ 'id' => 221, 'title' => '游戏配置', 'icon' => '', 'controller' => 'MerchantAudit', 'url' => '/merchant/audit/pending', 'sort' => 1, 'level' => 3, 'parent_id' => 22, ], [ 'id' => 222, 'title' => '游戏批量维护', 'icon' => '', 'controller' => 'MerchantAudit', 'url' => '/merchant/audit/passed', 'sort' => 2, 'level' => 3, 'parent_id' => 22, ] ] ] ] ], [ 'id' => 3, 'title' => '权限管理', 'icon' => 'layui-icon-chart', 'controller' => '', 'url' => '', 'sort' => 3, 'level' => 1, 'parent_id' => 0, 'children' => [ [ 'id' => 31, 'title' => '角色列表', 'icon' => 'layui-icon-chart-screen', 'controller' => 'UserRole', 'url' => '/statistics/user', 'sort' => 1, 'level' => 2, 'parent_id' => 3, ], [ 'id' => 32, 'title' => '商户账号列表', 'icon' => 'layui-icon-data', 'controller' => 'User', 'url' => '/statistics/merchant', 'sort' => 2, 'level' => 2, 'parent_id' => 3, ] ] ] ], // 控制器对应的权限节点配置 'controller_permissions' => [ 'User' => [ 'name' => '用户管理', 'actions' => ['list', 'create', 'update', 'delete', 'detail'] ], 'UserRole' => [ 'name' => '角色管理', 'actions' => ['list', 'create', 'update', 'delete', 'detail', 'permissions'] ], 'Permission' => [ 'name' => '权限管理', 'actions' => ['list', 'assign'] ], 'Merchant' => [ 'name' => '商户管理', 'actions' => ['list', 'create', 'update', 'delete', 'detail'] ], 'MerchantAudit' => [ 'name' => '商户审核', 'actions' => ['pending', 'passed', 'approve', 'reject'] ], 'Statistics' => [ 'name' => '数据统计', 'actions' => ['user', 'merchant', 'daily', 'monthly', 'yearly', 'income', 'users'] ] ] ];