/**
 * 从后端接口获取：/api/system/menus/permissions
 * @description 权限列表, 仅供开发时提供 ts 类型提示，无实际作用
 */
const permissions = [
  'system:user:list',
  'system:role:list',
  'system:menu:list',
  'system:online:list',
  'system:log:login:list',
  'system:serve:stat',
  'system:task:list',
  'system:user:create',
  'system:user:delete',
  'system:user:update',
  'system:user:read',
  'system:role:create',
  'system:role:delete',
  'system:role:update',
  'system:role:read',
  'system:menu:create',
  'system:menu:delete',
  'system:menu:update',
  'system:menu:read',
  'system:online:kick',
  'system:task:create',
  'system:task:delete',
  'system:task:once',
  'system:task:read',
  'system:task:start',
  'system:task:stop',
  'system:task:update',
  'system:log:task:list',
  'system:tools:email',
  'tools:email:send',
  'tool:storage:list',
  'upload:upload',
  'tool:storage:delete',
  'system:user:password',
  'system:dict-type:list',
  'system:dict-type:create',
  'system:dict-type:update',
  'system:dict-type:delete',
  'system:dict-type:info',
  'system:dept:list',
  'system:dept:create',
  'system:dept:update',
  'system:dept:delete',
  'system:dept:read',
  'app:health:network',
  'app:health: database',
  'system:param-config:list',
  'system:param-config:read',
  'system:param-config:create',
  'system:param-config:update',
  'system:param-config:delete',
  'system:dict-item:list',
  'system:dict-item:create',
  'system:dict-item:update',
  'system:dict-item:delete',
  'system:dict-item:info',
  'netdisk:manage:list',
  'netdisk:manage:create',
  'netdisk:manage:read',
  'netdisk:manage:update',
  'netdisk:manage:delete',
  'netdisk:manage:token',
  'netdisk:manage:mark',
  'netdisk:manage:download',
  'netdisk:manage:rename',
  'netdisk:manage:copy',
  'netdisk:manage:cut',
  'netdisk:overview:desc',
  'app:contract:list',
  'materials_inventory:history_in_out:list',
  'app:contract:update',
  'app:contract:delete',
  'app:contract:read',
  'app:contract:create',
  'materials_inventory:history_in_out:create',
  'materials_inventory:history_in_out:update',
  'materials_inventory:history_in_out:delete',
  'app:company:list',
  'app:company:read',
  'app:company:create',
  'app:company:update',
  'app:company:delete',
  'app:product:list',
  'app:product:read',
  'app:product:create',
  'app:product:update',
  'app:product:delete',
  'materials_inventory:history_in_out:export',
  'app:materials_inventory:list',
  'app:project:list',
  'app:project:create',
  'app:project:update',
  'app:project:delete',
  'app:project:read',
] as const;

export type PermissionType = string;
// export type PermissionType = (typeof permissions)[number]; 目前添加这个类型判断会影响vscode的性能，暂时注释掉

// console.log('permissions', permissions);
