import type { RouteMeta } from 'vue-router';
export interface RouteItem {
  path: string;
  component: any;
  meta: RouteMeta;
  name?: string;
  alias?: string | string[];
  redirect?: string;
  caseSensitive?: boolean;
  children?: RouteItem[];
}

/**
 * @description: Get menu return value
 */
export interface getMenuListResultModel {
  codeList: string[];
  allAuth: any[];
  auth: any[];
  menu: RouteItem[];
}

export interface EnfMineTreeItem {
  /** 部门ID */
  id: string;
  /** 部门名称 */
  departName: string;
  /** 父部门ID */
  parentId: string;
  /** 子部门列表 */
  childDepart: EnfMineTreeItem[];
  /** 部门排序 */
  departOrder?: number;
  /** 是否为叶节点，前端添加 */
  isLeaf?: boolean;
}
