export interface CourseResourceItem {
  id: number;
  title: string;
  intro: string;
  coverUrl: string;
  category: string;
  categoryLabel: string;
  difficulty: string;
  difficultyLabel: string;
  viewCount: number;
  detailUrl: string;
  source: 'datawhale';
  updatedAt?: string;
}

export interface CourseResourcesPayload {
  source: 'datawhale';
  courses: CourseResourceItem[];
  total: number;
  syncedAt: string | null;
}

export interface DatawhaleCourseRow {
  id?: number;
  title?: string;
  intro?: string;
  coverUrl?: string;
  category?: string;
  difficulty?: string;
  viewCount?: number;
  updateTime?: string;
}
