<?php

return [
    // 商品管理
    'GOODS_MANAGE' => [
        'id' => 1,
        'name' => '商品管理',
        'parent_id' => 0,
    ],
    'GOODS_LIST' => [
        'id' => 2,
        'name' => '商品列表',
        'parent_id' => 1,
    ],
    'goods.index' => [
        'id' => 20,
        'name' => '商品列表',
        'parent_id' => 2,
    ],
    'goods.store' => [
        'id' => 21,
        'name' => '新增商品',
        'parent_id' => 2,
    ],
    'goods_skus.index' => [
        'id' => 22,
        'name' => '规格列表',
        'parent_id' => 2,
    ],
    'goods_skus.store' => [
        'id' => 23,
        'name' => '新增规格',
        'parent_id' => 2,
    ],
    'goods_skus.show' => [
        'id' => 24,
        'name' => '规格查看',
        'parent_id' => 2,
    ],
    'goods_skus.update' => [
        'id' => 25,
        'name' => '规格更新',
        'parent_id' => 2,
    ],
    'goods_sku.batch_update' => [
        'id' => 26,
        'name' => '上新/盘点',
        'parent_id' => 2,
    ],
    'goods_sku.single_update' => [
        'id' => 27,
        'name' => '字段更新',
        'parent_id' => 2,
    ],
    'goods_sku.orders_num' => [
        'id' => 28,
        'name' => '店铺订单',
        'parent_id' => 2,
    ],
    'GOODS_TYPE' => [
        'id' => 3,
        'name' => '商品种类',
        'parent_id' => 1,
    ],
    'goods_types.index' => [
        'id' => 30,
        'name' => '列表',
        'parent_id' => 3,
    ],
    'goods_types.store' => [
        'id' => 31,
        'name' => '新增',
        'parent_id' => 3,
    ],
    'goods_types.show' => [
        'id' => 32,
        'name' => '查看',
        'parent_id' => 3,
    ],
    'goods_types.update' => [
        'id' => 33,
        'name' => '更新',
        'parent_id' => 3,
    ],
    'goods_types.destroy' => [
        'id' => 34,
        'name' => '删除',
        'parent_id' => 3,
    ],
    'GOODS_BRAND' => [
        'id' => 4,
        'name' => '商品品牌',
        'parent_id' => 1,
    ],
    'goods_brands.index' => [
        'id' => 40,
        'name' => '列表',
        'parent_id' => 4,
    ],
    'goods_brands.store' => [
        'id' => 41,
        'name' => '新增',
        'parent_id' => 4,
    ],
    'goods_brands.show' => [
        'id' => 42,
        'name' => '查看',
        'parent_id' => 4,
    ],
    'goods_brands.update' => [
        'id' => 43,
        'name' => '更新',
        'parent_id' => 4,
    ],
    'goods_brands.destroy' => [
        'id' => 44,
        'name' => '删除',
        'parent_id' => 4,
    ],
    // 店铺管理
    'SHOP_MANAGE' => [
        'id' => 5,
        'name' => '店铺管理',
        'parent_id' => 0,
    ],
    'shops.index' => [
        'id' => 50,
        'name' => '列表',
        'parent_id' => 5,
    ],
    'shops.store' => [
        'id' => 51,
        'name' => '新增',
        'parent_id' => 5,
    ],
    'shops.show' => [
        'id' => 52,
        'name' => '查看',
        'parent_id' => 5,
    ],
    'shops.update' => [
        'id' => 53,
        'name' => '更新',
        'parent_id' => 5,
    ],
    'shops.destroy' => [
        'id' => 54,
        'name' => '删除',
        'parent_id' => 5,
    ],
    'business.goods_sku.download' => [
        'id' => 55,
        'name' => '商品下载',
        'parent_id' => 5,
    ],
    // 用户管理
    'USER_MANAGE' => [
        'id' => 6,
        'name' => '用户管理',
        'parent_id' => 0,
    ],
    'users.index' => [
        'id' => 60,
        'name' => '列表',
        'parent_id' => 6,
    ],
    'users.store' => [
        'id' => 61,
        'name' => '新增',
        'parent_id' => 6,
    ],
    'users.show' => [
        'id' => 62,
        'name' => '查看',
        'parent_id' => 6,
    ],
    'users.update' => [
        'id' => 63,
        'name' => '更新',
        'parent_id' => 6,
    ],
    'users.destroy' => [
        'id' => 64,
        'name' => '删除',
        'parent_id' => 6,
    ],
    // 系统管理
    'SYSTEM_MANAGE' => [
        'id' => 7,
        'name' => '系统管理',
        'parent_id' => 0,
    ],
    'ROLE_MANAGE' => [
        'id' => 8,
        'name' => '角色管理',
        'parent_id' => 7,
    ],
    'roles.index' => [
        'id' => 80,
        'name' => '列表',
        'parent_id' => 8,
    ],
    'roles.store' => [
        'id' => 81,
        'name' => '新增',
        'parent_id' => 8,
    ],
    'roles.show' => [
        'id' => 82,
        'name' => '查看',
        'parent_id' => 8,
    ],
    'roles.update' => [
        'id' => 83,
        'name' => '更新',
        'parent_id' => 8,
    ],
    'roles.permission' => [
        'id' => 84,
        'name' => '设置权限',
        'parent_id' => 8,
    ],
//    'PERMISSION_MANAGE' => [
//        'id' => 9,
//        'name' => '权限管理',
//        'parent_id' => 7,
//    ],
    'permissions.index' => [
        'id' => 90,
        'name' => '列表',
        'parent_id' => 9,
    ],
    'upload.file' => [
        'id' => 11,
        'name' => '文件上传',
        'parent_id' => 7,
    ],
    // 系统日志
    'SYSTEM_LOG' => [
        'id' => 10,
        'name' => '系统日志',
        'parent_id' => 0,
    ],
    'logs.index' => [
        'id' => 100,
        'name' => '列表',
        'parent_id' => 10,
    ],
];
