// 权限项类型
export interface PermissionItem {
  id: number;
  name: string;
  code: string;
  moduleCode: string;
  moduleName: string;
  type: number; // 1: 菜单, 2: 按钮
  parentId: number;
  path?: string;
  icon?: string;
  sort: number;
  status: number;
  createTime?: string;
}

// 权限模块类型
export interface PermissionModule {
  code: string;
  name: string;
  permissions: PermissionItem[];
}

// 角色权限类型
export interface RolePermission {
  roleId: number;
  roleName: string;
  permissionIds: number[];
}
