export interface RoleListItem {
  id: number;
  role_name: string;
  remark: string;

}

export interface RoleListPagination {
  total: number;
  pageSize: number;
  current: number;
}

export interface RoleListData {
  list: RoleListItem[];
  pagination: Partial<RoleListPagination>;
}

export interface RoleListParams {
  status?: number;
  pageSize?: number;
  current?: number;
  filter?: { [key: string]: any[] };
  sorter?: { [key: string]: any };
}


export interface RoleListParamsV2 {
  role_name?: string;
  pageSize?: number;
  current?: number;
  filter?: { [key: string]: any[] };
  sorter?: { [key: string]: any };
}

export interface RoleParams {
  role_name: string;
  privilege: string[];
}


export interface RoleInfo {
  id: number;
  role_name: string;
  role_alias: string;
  create_user: string;
  is_inherent: boolean;
  remark: string;
  created_time: string;
  privileges: string[];
  label: string;
  children: string;
  key: number;


}


export interface MenuItem {
  label: string;
  name: string;
  path: string;
  is_inherent?: boolean;
  children: MenuItem[] | null;
}
