/**
 * Mock 班级数据（classes 域）
 *
 * 维护者：ai13（teacher-portal）
 */

import type { Class } from "@/lib/graphql";

export const mockClasses: Class[] = [
  {
    id: "550e8400-e29b-41d4-a716-446655440010",
    name: "高三(1)班",
    gradeId: "grade-12",
    studentCount: 32,
  },
  {
    id: "550e8400-e29b-41d4-a716-446655440011",
    name: "高三(2)班",
    gradeId: "grade-12",
    studentCount: 30,
  },
  {
    id: "550e8400-e29b-41d4-a716-446655440012",
    name: "高三(3)班",
    gradeId: "grade-12",
    studentCount: 28,
  },
];

/** Mock 班级详情查找（按 id） */
export function findClass(id: string): Class | null {
  return mockClasses.find((c) => c.id === id) ?? null;
}
