| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <?php
- return [
- // 菜单配置
- 'menus' => [
- [
- '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']
- ]
- ]
- ];
|