export interface RoleItem {
  id: number;
  roleGroup: string;
  name: string;
  type: string;
  createTime: string;
}

export interface RoleFormPayload {
  id?: number | string
  name: string
  roleGroup?: string
  [key: string]: unknown
}

export interface RoleGroup {
  label: string
  list: RoleItem[]
}

export interface RoleUser {
  id: number
  account: string
}

export interface RolePermsData {
  dataRoleIds?: number[]
  menuIds?: number[]
  [key: string]: unknown
}

export interface MenuTreeNode {
  id: number;
  name: string;
  title: string;
  path: string;
  url: string;
  route: string;
  pid: number;
  type: number;
  sortNo: number;
  enable: boolean;
  indeter: boolean;
  includeNamespace: string;
  excludeNamespace: string;
  children: MenuTreeNode[];
}