import { RouteName } from "@/router/config";
import { UserPermission } from "@/store/permission";
import { DataScope } from "@/store/role";

// 子权限
export const permissionChilds = ["select", "update", "delete", "add"];

// 共有菜单
export const pubPermissionMenus = [RouteName.home];

// 登录用户共有权限
export const pubPermissions: UserPermission[] = pubPermissionMenus.map(
  (menu) => ({
    resourceKey: menu,
    type: "menu",
    dataScope: DataScope.none,
  })
);
