feat: model undergraduate schools terms and exam queries

This commit is contained in:
Codex
2026-10-14 23:14:48 +08:00
parent 3f28e0a1b6
commit 48367b8273
8 changed files with 176 additions and 27 deletions
+9
View File
@@ -0,0 +1,9 @@
enum SupportedSchool {
uestcGraduate('uestc_graduate', '电子科技大学(研究生)', '研究生课表与考试安排'),
uestcUndergraduate('uestc_undergraduate', '电子科技大学(本科生)', '手动导入课表 · 自动查询考试');
const SupportedSchool(this.id, this.label, this.description);
final String id, label, description;
static SupportedSchool fromId(String id) => values.firstWhere(
(s) => s.id == id, orElse: () => throw const FormatException('学校标识无效'));
}