/* GlobalState */
export interface GlobalState {
  isloading: boolean
  breadcrumb: string[]
  depotList: DepotType[]
  isCollapse: boolean
  User_tokey: string
  userInfo?: any
  language?: string
  UserPostList: string[]
  UserDeptList: UserDeptType[]
  MenuList: Menu.MenuOptions[]
  expandMenuList: any
  path: string
  allBreadcrumbList: any
  flatMenu: any
  noticeTotal: number
  noticePage: number
  noticeList: NoticeType[]
}

export interface DepotType {
  T_name: string
  Id: number
}

export interface NoticeType {
  CreateTime: string
  Id: number
  T_Tag: number
  T_Title: string
  T_Url: string
  T_uuid: string
}

// export interface MenuType {
//   Children?: MenuType[]
//   Id: number
//   T_State: number
//   T_icon: string
//   T_mid: number
//   T_name: string
//   T_permission: string
//   T_sort: number
//   T_type: string
//   meta?: MetaType
// }

// interface MetaType {
//   icon: string
//   title: string
//   isKeepAlive: boolean
// }

export interface UserDeptType {
  Id: number
  T_State: number
  T_name: string
}

/* tabsMenuProps */
export interface TabsMenuProps {
  icon: string
  title: string
  path: string
  name: string
  close: boolean
}

/* TabsState */
export interface TabsState {
  tabsMenuList: TabsMenuProps[]
}

/* keepAliveState */
export interface keepAliveState {
  keepAliveName: string[]
}
