<?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' => 'Player',
                    'url' => '/player/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-set',
                    'controller' => '',
                    'url' => '',
                    'sort' => 2,
                    'level' => 2,
                    'parent_id' => 2,
                    'children' => [
                        [
                            'id' => 211,
                            'title' => '游戏配置',
                            'icon' => '',
                            'controller' => 'Game',
                            'url' => '/view/game/config.html',
                            'sort' => 1,
                            'level' => 3,
                            'parent_id' => 22
                        ],
                        [
                            'id' => 212,
                            'title' => '批量游戏维护',
                            'icon' => '',
                            'controller' => 'Game',
                            'url' => '/view/game/batch.html',
                            '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' => '/user_role/list',
                    'sort' => 1,
                    'level' => 2,
                    'parent_id' => 3
                ],
                [
                    'id' => 32,
                    'title' => '账号列表',
                    'icon' => 'layui-icon-data',
                    'controller' => 'User',
                    'url' => '/user/list',
                    'sort' => 2,
                    'level' => 2,
                    'parent_id' => 3
                ]
            ]
        ]
    ]
];