Files
doodle-mini/miniprogram/core/models/worksheet.ts
T
2026-03-26 17:33:04 +08:00

27 lines
665 B
TypeScript

export type WorksheetCategory = 'math' | 'focus' | 'chinese' | 'english' | 'puzzle' | 'craft';
export type DifficultyLevel = 'beginner' | 'basic' | 'intermediate' | 'advanced';
export interface WorksheetType {
id: string;
title: string;
desc: string;
category: WorksheetCategory;
page?: string;
subpackage?: string;
icon?: string;
img?: string;
ageRange?: [number, number];
difficulty?: DifficultyLevel;
mode?: string;
previewBg?: string;
previewText?: string;
}
export interface CategoryType {
id: WorksheetCategory;
name: string;
icon: string;
color: string;
gradient: [string, string];
}