<?php

return [
    // 统一给 UI 展示的五类“产品词汇”
    'categories' => [
        'view' => [
            'label' => '查看',
        ],
        'manage' => [
            'label' => '可管理',
        ],
        'audit' => [
            'label' => '可审核',
        ],
        'export' => [
            'label' => '导出',
        ],
        'privilege' => [
            'label' => '特权',
        ],
    ],

    // “页面权限包”：把页面动作映射到 `prd.*` slug 与运行时 action code
    'pages' => [
        'integration-sites' => [
            'label' => '接入站点',
            // 该页面在侧栏/页级入口需要的最小 slug 集合（对应“页面可进”）
            'required_bundles' => [
                'view',
                'manage',
            ],
            'bundles' => [
                'view' => [
                    'category' => 'view',
                    'prd_slug' => 'prd.integration.view',
                    'permission_codes' => ['integration.site.view'],
                ],
                'manage' => [
                    'category' => 'manage',
                    'prd_slug' => 'prd.integration.manage',
                    'permission_codes' => ['integration.site.manage'],
                ],
                // 当前页面暂无对“审核/导出/特权”的独立权限包拆分
            ],
        ],
    ],
];

