export interface RoleAccessPermission {
  id: number | null;
  create: boolean;
  read: boolean;
  update: boolean;
  delete: boolean;
  disable: boolean;
}

export interface RoleAccessItem {
  id: number;
  name: string;
  icon: string;
  url: string;
  group: string;
  level: number;
  sort: number;
  active: boolean;
  permission: RoleAccessPermission;
  children?: RoleAccessItem[];
}

export interface RolePermissionData {
  role: string;
  access: RoleAccessItem[];
}

export interface RolePermissionResponse {
  status: string;
  message: string;
  data: RolePermissionData;
}
