rusaint 0.16.1

Easy-to-use SSU u-saint client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
use std::collections::HashMap;

use serde::{
    Deserialize, Serialize,
    de::{IntoDeserializer, value::MapDeserializer},
};

use crate::application::utils::de_with::deserialize_optional_string;
use crate::{
    application::course_schedule::utils::{
        request, request_lv1, request_lv2, request_lv3, request_text,
    },
    client::USaintClient,
};
use wdpe::element::parser::ElementParser;
use wdpe::{
    define_elements,
    element::{
        action::Button, complex::sap_table::FromSapTable, definition::ElementDefinition,
        layout::tab_strip::item::TabStripItem, selection::ComboBox,
    },
    error::{ElementError, WebDynproError},
};

/// 강의를 찾을 때 사용하는 강의 카테고리
#[allow(unused)]
#[cfg_attr(feature = "uniffi", derive(uniffi::Enum))]
#[derive(Debug, Serialize, Deserialize)]
pub enum LectureCategory {
    /// 전공 강의
    Major {
        /// 단과대명
        collage: String,
        /// 학부명
        department: String,
        /// 전공명
        major: Option<String>,
    },
    /// 교양필수
    RequiredElective {
        /// 과목명
        lecture_name: String,
    },
    /// 교양선택
    OptionalElective {
        /// 교양 분류
        category: String,
    },
    /// 채플
    Chapel {
        /// 과목명
        lecture_name: String,
    },
    /// 교직
    Education,
    /// 대학원
    Graduated {
        /// 단과대명
        collage: String,
        /// 학부명
        department: String,
    },
    /// 연계전공
    ConnectedMajor {
        /// 전공명
        major: String,
    },
    /// 융합전공
    UnitedMajor {
        /// 전공명
        major: String,
    },
    /// 교수명 검색
    FindByProfessor {
        /// 교수명
        keyword: String,
    },
    /// 과목명 검색
    FindByLecture {
        /// 과목명
        keyword: String,
    },
    /// 타전공인정과목
    RecognizedOtherMajor {
        /// 단과대명
        collage: String,
        /// 학부명
        department: String,
        /// 전공명
        major: Option<String>,
    },
    /// 숭실사이버대
    Cyber,
}

impl LectureCategory {
    /// 전공과목 분류의 [`LectureCategory`]를 만듭니다.
    pub fn major(collage: &str, department: &str, major: Option<&str>) -> Self {
        Self::Major {
            collage: collage.to_string(),
            department: department.to_string(),
            major: major.map(|str| str.to_string()),
        }
    }

    /// 교양필수 분류의 [`LectureCategory`]를 만듭니다.
    pub fn required_elective(lecture_name: &str) -> Self {
        Self::RequiredElective {
            lecture_name: lecture_name.to_string(),
        }
    }

    /// 교양선택 분류의 [`LectureCategory`]를 만듭니다.
    pub fn optional_elective(category: &str) -> Self {
        Self::OptionalElective {
            category: category.to_string(),
        }
    }

    /// 채플 분류의 [`LectureCategory`]를 만듭니다.
    pub fn chapel(lecture_name: &str) -> Self {
        Self::Chapel {
            lecture_name: lecture_name.to_string(),
        }
    }

    /// 교직 분류의 [`LectureCategory`]를 만듭니다.
    pub fn education() -> Self {
        Self::Education
    }

    /// 대학원 분류의 [`LectureCategory`]를 만듭니다.
    pub fn graduated(collage: &str, department: &str) -> Self {
        Self::Graduated {
            collage: collage.to_string(),
            department: department.to_string(),
        }
    }

    /// 연계전공 분류의 [`LectureCategory`]를 만듭니다.
    pub fn connected_major(major: &str) -> Self {
        Self::ConnectedMajor {
            major: major.to_string(),
        }
    }

    /// 융합전공 분류의 [`LectureCategory`]를 만듭니다.
    pub fn united_major(major: &str) -> Self {
        Self::UnitedMajor {
            major: major.to_string(),
        }
    }

    /// 교수명으로 찾기 위한 [`LectureCategory`]를 만듭니다.
    pub fn find_by_professor(keyword: &str) -> Self {
        Self::FindByProfessor {
            keyword: keyword.to_string(),
        }
    }

    /// 과목명으로 찾기 위한 [`LectureCategory`]를 만듭니다.
    pub fn find_by_lecture(keyword: &str) -> Self {
        Self::FindByLecture {
            keyword: keyword.to_string(),
        }
    }

    /// 타전공인정과목 분류의 [`LectureCategory`]를 만듭니다.
    pub fn recognized_other_major(collage: &str, department: &str, major: Option<&str>) -> Self {
        Self::RecognizedOtherMajor {
            collage: collage.to_string(),
            department: department.to_string(),
            major: major.map(|str| str.to_string()),
        }
    }

    /// 숭실사이버대 분류의 [`LectureCategory`]를 만듭니다.
    pub fn cyber() -> Self {
        Self::Cyber
    }

    pub(super) async fn request_query(
        &self,
        client: &mut USaintClient,
    ) -> Result<(), WebDynproError> {
        match self {
            LectureCategory::Major {
                collage,
                department,
                major,
            } => {
                // 학부전공별
                define_elements! {
                    TAB_OTHERS: TabStripItem<'_> = "ZCMW2100.ID_0001:VIW_MAIN.TAB_OTHERS";
                    OTHERS_DDK_LV3: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_OTHERS.DDK_LV3";
                    OTHERS_DDK_LV4: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_OTHERS.DDK_LV4";
                    OTHERS_DDK_LV5: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_OTHERS.DDK_LV5";
                    SEARCH_OTHERS: Button<'_> = "ZCMW2100.ID_0001:VIW_TAB_OTHERS.BUTTON";
                }
                if let Some(major) = major {
                    request_lv3(
                        client,
                        TAB_OTHERS,
                        0,
                        OTHERS_DDK_LV3,
                        OTHERS_DDK_LV4,
                        OTHERS_DDK_LV5,
                        SEARCH_OTHERS,
                        collage,
                        department,
                        major,
                    )
                    .await?;
                } else {
                    request_lv2(
                        client,
                        TAB_OTHERS,
                        0,
                        OTHERS_DDK_LV3,
                        OTHERS_DDK_LV4,
                        SEARCH_OTHERS,
                        collage,
                        department,
                    )
                    .await?;
                }
            }
            LectureCategory::RequiredElective { lecture_name } => {
                // 교양필수
                define_elements! {
                    TAB_GENERAL_REQ: TabStripItem<'_> = "ZCMW2100.ID_0001:VIW_MAIN.TAB_GENERAL_REQ";
                    GENERAL_REQ_TYPE: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_GENERAL_REQ.SM_OBJID";
                    SEARCH_GENERAL_REQ: Button<'_> = "ZCMW2100.ID_0001:VIW_TAB_GENERAL_REQ.BUTTON_SEARCH";
                }
                request_lv1(
                    client,
                    TAB_GENERAL_REQ,
                    1,
                    GENERAL_REQ_TYPE,
                    SEARCH_GENERAL_REQ,
                    lecture_name,
                )
                .await?;
            }
            LectureCategory::OptionalElective { category } => {
                // 교양선택
                define_elements! {
                    TAB_GENERAL_OPT: TabStripItem<'_> = "ZCMW2100.ID_0001:VIW_MAIN.TAB_GENERAL_OPT";
                    GENERAL_OPT_DISCIPLINES: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_GENERAL_OPT.DISCIPLINES";
                    SEARCH_GENERAL_OPT: Button<'_> = "ZCMW2100.ID_0001:VIW_TAB_GENERAL_OPT.BUTTON_SEARCH";
                }
                request_lv1(
                    client,
                    TAB_GENERAL_OPT,
                    2,
                    GENERAL_OPT_DISCIPLINES,
                    SEARCH_GENERAL_OPT,
                    category,
                )
                .await?;
            }
            LectureCategory::Chapel { lecture_name } => {
                // 채플
                define_elements! {
                    TAB_CHAPEL: TabStripItem<'_> = "ZCMW2100.ID_0001:VIW_MAIN.TAB_CHAPEL_REQ";
                    CHAPEL_TYPE: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_CHAPEL_REQ.SM_OBJID";
                    SEARCH_CHAPEL: Button<'_> = "ZCMW2100.ID_0001:VIW_TAB_CHAPEL_REQ.BUTTON_SEARCH";
                }
                request_lv1(
                    client,
                    TAB_CHAPEL,
                    3,
                    CHAPEL_TYPE,
                    SEARCH_CHAPEL,
                    lecture_name,
                )
                .await?;
            }
            LectureCategory::Education => {
                // 교직
                define_elements! {
                    TAB_EDU: TabStripItem<'_> = "ZCMW2100.ID_0001:VIW_MAIN.TAB_EDU";
                    SEARCH_EDU: Button<'_> = "ZCMW2100.ID_0001:VIW_MAIN.BUTTON_EDU";
                }
                request(client, TAB_EDU, 4, SEARCH_EDU).await?;
            }
            LectureCategory::Graduated {
                collage,
                department,
            } => {
                // 대학원
                define_elements! {
                    TAB_GRADUATE: TabStripItem<'_> = "ZCMW2100.ID_0001:VIW_MAIN.TAB_GRADUATE";
                    GRADUATE_DDK_LV3: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_GRADUATE.DDK_LV3";
                    GRADUATE_DDK_LV4: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_GRADUATE.DDK_LV4";
                    SEARCH_GRADUATE: Button<'_> = "ZCMW2100.ID_0001:VIW_TAB_GRADUATE.BUTTON";
                }
                request_lv2(
                    client,
                    TAB_GRADUATE,
                    7,
                    GRADUATE_DDK_LV3,
                    GRADUATE_DDK_LV4,
                    SEARCH_GRADUATE,
                    collage,
                    department,
                )
                .await?;
            }
            LectureCategory::ConnectedMajor { major } => {
                // 연계전공
                define_elements! {
                    TAB_YOMA: TabStripItem<'_> = "ZCMW2100.ID_0001:VIW_MAIN.TAB_YOMA";
                    COMBO_YOMA: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_YOMA.CONNECT_MAJO";
                    SEARCH_YOMA: Button<'_> = "ZCMW2100.ID_0001:VIW_TAB_YOMA.BUTTON_SEARCH";
                }
                request_lv1(client, TAB_YOMA, 8, COMBO_YOMA, SEARCH_YOMA, major).await?;
            }
            LectureCategory::UnitedMajor { major } => {
                // 융합전공
                define_elements! {
                    TAB_UNMA: TabStripItem<'_> = "ZCMW2100.ID_0001:VIW_MAIN.TAB_UNMA";
                    COMBO_UNMA: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_UNMA.CG_OBJID";
                    SEARCH_UNMA: Button<'_> = "ZCMW2100.ID_0001:VIW_TAB_UNMA.BUTTON_SEARCH";
                }
                request_lv1(client, TAB_UNMA, 9, COMBO_UNMA, SEARCH_UNMA, major).await?;
            }
            LectureCategory::FindByProfessor { keyword } => {
                // 교수명검색
                define_elements! {
                    TAB_PROFESSOR: TabStripItem<'_> = "ZCMW2100.ID_0001:VIW_MAIN.TAB_PROFESSOR";
                    COMBO_PROFESSOR: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_PROFESSOR.PROFESSOR"; // TODO: implement ComboBoxString
                    SEARCH_PROFESSOR: Button<'_> = "ZCMW2100.ID_0001:VIW_TAB_PROFESSOR.BUTTON_SEARCH";
                }
                request_text(
                    client,
                    TAB_PROFESSOR,
                    10,
                    COMBO_PROFESSOR,
                    SEARCH_PROFESSOR,
                    keyword,
                )
                .await?;
            }
            LectureCategory::FindByLecture { keyword } => {
                // 과목검색
                define_elements! {
                    TAB_SEARCH: TabStripItem<'_> = "ZCMW2100.ID_0001:VIW_MAIN.TAB_SEARCH";
                    COMBO_SEARCH: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_SEARCH.SEARCH_TEXT";
                    SEARCH_SEARCH: Button<'_> = "ZCMW2100.ID_0001:VIW_TAB_SEARCH.BUTTON_SEARCH";
                }
                request_text(client, TAB_SEARCH, 11, COMBO_SEARCH, SEARCH_SEARCH, keyword).await?;
            }
            LectureCategory::RecognizedOtherMajor {
                collage,
                department,
                major,
            } => {
                // 타전공인정과목
                define_elements! {
                    TAB_OTHER_GC: TabStripItem<'_> = "ZCMW2100.ID_0001:VIW_MAIN.TAB_OTHER_GC";
                    OTHER_GC_DDK_LV3: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_OTHER_GC.DDK_LV3";
                    OTHER_GC_DDK_LV4: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_OTHER_GC.DDK_LV4";
                    OTHER_GC_DDK_LV5: ComboBox<'_> = "ZCMW2100.ID_0001:VIW_TAB_OTHER_GC.DDK_LV5";
                    SEARCH_OTHER_GC: Button<'_> = "ZCMW2100.ID_0001:VIW_TAB_OTHER_GC.BTN_OTHER_GC";
                }
                if let Some(major) = major {
                    request_lv3(
                        client,
                        TAB_OTHER_GC,
                        12,
                        OTHER_GC_DDK_LV3,
                        OTHER_GC_DDK_LV4,
                        OTHER_GC_DDK_LV5,
                        SEARCH_OTHER_GC,
                        collage,
                        department,
                        major,
                    )
                    .await?;
                } else {
                    request_lv2(
                        client,
                        TAB_OTHER_GC,
                        12,
                        OTHER_GC_DDK_LV3,
                        OTHER_GC_DDK_LV4,
                        SEARCH_OTHER_GC,
                        collage,
                        department,
                    )
                    .await?;
                }
            }
            LectureCategory::Cyber => {
                // 숭실사이버대
                define_elements! {
                    TAB_CYBER: TabStripItem<'_> = "ZCMW2100.ID_0001:VIW_MAIN.TAB_CYBER";
                    SEARCH_CYBER: Button<'_> = "ZCMW2100.ID_0001:VIW_MAIN.BTN_CYBER";
                }
                request(client, TAB_CYBER, 14, SEARCH_CYBER).await?;
            }
        }
        Ok(())
    }
}

/// 과목 정보
#[allow(unused)]
#[derive(Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "uniffi", derive(uniffi::Record))]
pub struct Lecture {
    /// 계획
    #[serde(
        rename(deserialize = "계획"),
        default,
        deserialize_with = "deserialize_optional_string"
    )]
    pub syllabus: Option<String>,
    /// 이수구분(주전공)
    #[serde(rename(deserialize = "이수구분(주전공)"))]
    pub category: String,
    /// 이수구분(다전공)
    #[serde(
        rename(deserialize = "이수구분(다전공)"),
        default,
        deserialize_with = "deserialize_optional_string"
    )]
    pub sub_category: Option<String>,
    /// 공학인증
    #[serde(
        rename(deserialize = "공학인증"),
        default,
        deserialize_with = "deserialize_optional_string"
    )]
    pub abeek_info: Option<String>,
    /// 교과영역
    #[serde(
        rename(deserialize = "교과영역"),
        default,
        deserialize_with = "deserialize_optional_string"
    )]
    pub field: Option<String>,
    /// 과목번호
    #[serde(rename(deserialize = "과목번호"))]
    pub code: String,
    /// 과목명
    #[serde(rename(deserialize = "과목명"))]
    pub name: String,
    /// 분반
    #[serde(
        rename(deserialize = "분반"),
        default,
        deserialize_with = "deserialize_optional_string"
    )]
    pub division: Option<String>,
    /// 교수명
    #[serde(rename(deserialize = "교수명"))]
    pub professor: String,
    /// 개설학과
    #[serde(rename(deserialize = "개설학과"))]
    pub department: String,
    /// 시간/학점(설계)
    #[serde(rename(deserialize = "시간/학점(설계)"))]
    pub time_points: String,
    /// 수강인원
    #[serde(rename(deserialize = "수강인원"))]
    pub personeel: String,
    /// 여석
    #[serde(rename(deserialize = "여석"))]
    pub remaining_seats: String,
    /// 강의시간(강의실)
    #[serde(rename(deserialize = "강의시간(강의실)"))]
    pub schedule_room: String,
    /// 수강대상
    #[serde(rename(deserialize = "수강대상"))]
    pub target: String,
}

impl<'body> FromSapTable<'body> for Lecture {
    fn from_table(
        header: Option<&'body wdpe::element::complex::sap_table::SapTableHeader>,
        row: &'body wdpe::element::complex::sap_table::SapTableRow,
        parser: &'body ElementParser,
    ) -> Result<Self, WebDynproError> {
        let map_string = row.try_row_into::<HashMap<String, String>>(header, parser)?;
        let map_de: MapDeserializer<_, serde::de::value::Error> = map_string.into_deserializer();
        Ok(
            Lecture::deserialize(map_de).map_err(|e| ElementError::InvalidContent {
                element: row.table_def().id().to_string(),
                content: e.to_string(),
            })?,
        )
    }
}

#[cfg(feature = "uniffi")]
#[cfg_attr(feature = "uniffi", derive(uniffi::Object))]
/// 새로운 `LectureCategory`를 만드는 빌더입니다.
pub struct LectureCategoryBuilder {}

#[cfg(feature = "uniffi")]
#[cfg_attr(feature = "uniffi", uniffi::export)]
impl LectureCategoryBuilder {
    #[uniffi::constructor]
    /// `LectureCategoryBuilder`를 만듭니다.
    pub fn new() -> Self {
        Self {}
    }

    /// 전공과목 분류의 [`LectureCategory`]를 만듭니다.
    pub fn major(
        &self,
        collage: &str,
        department: &str,
        major: &Option<String>,
    ) -> LectureCategory {
        LectureCategory::major(collage, department, major.as_ref().map(String::as_str))
    }

    /// 교양필수 분류의 [`LectureCategory`]를 만듭니다.
    pub fn required_elective(&self, lecture_name: &str) -> LectureCategory {
        LectureCategory::required_elective(lecture_name)
    }

    /// 교양선택 분류의 [`LectureCategory`]를 만듭니다.
    pub fn optional_elective(&self, category: &str) -> LectureCategory {
        LectureCategory::optional_elective(category)
    }

    /// 채플 분류의 [`LectureCategory`]를 만듭니다.
    pub fn chapel(&self, lecture_name: &str) -> LectureCategory {
        LectureCategory::chapel(lecture_name)
    }

    /// 교직 분류의 [`LectureCategory`]를 만듭니다.
    pub fn education(&self) -> LectureCategory {
        LectureCategory::education()
    }

    /// 대학원 분류의 [`LectureCategory`]를 만듭니다.
    pub fn graduated(&self, collage: &str, department: &str) -> LectureCategory {
        LectureCategory::graduated(collage, department)
    }

    /// 연계전공 분류의 [`LectureCategory`]를 만듭니다.
    pub fn connected_major(&self, major: &str) -> LectureCategory {
        LectureCategory::connected_major(major)
    }

    /// 융합전공 분류의 [`LectureCategory`]를 만듭니다.
    pub fn united_major(&self, major: &str) -> LectureCategory {
        LectureCategory::united_major(major)
    }

    /// 교수명으로 찾기 위한 [`LectureCategory`]를 만듭니다.
    pub fn find_by_professor(&self, keyword: &str) -> LectureCategory {
        LectureCategory::find_by_professor(keyword)
    }

    /// 과목명으로 찾기 위한 [`LectureCategory`]를 만듭니다.
    pub fn find_by_lecture(&self, keyword: &str) -> LectureCategory {
        LectureCategory::find_by_lecture(keyword)
    }

    /// 타전공인정과목 분류의 [`LectureCategory`]를 만듭니다.
    pub fn recognized_other_major(
        &self,
        collage: &str,
        department: &str,
        major: &Option<String>,
    ) -> LectureCategory {
        LectureCategory::recognized_other_major(
            collage,
            department,
            major.as_ref().map(String::as_str),
        )
    }

    /// 숭실사이버대 분류의 [`LectureCategory`]를 만듭니다.
    pub fn cyber(&self) -> LectureCategory {
        LectureCategory::cyber()
    }
}

#[cfg(feature = "uniffi")]
impl Default for LectureCategoryBuilder {
    fn default() -> Self {
        Self::new()
    }
}

/// 강의 검색 결과와 상세 정보, 강의계획서를 함께 담는 구조체
#[derive(Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "uniffi", derive(uniffi::Record))]
pub struct DetailedLecture {
    /// 강의 기본 정보
    pub lecture: Lecture,
    /// 강의 상세 정보 (상세 정보 링크가 없는 경우 `None`)
    pub detail: Option<LectureDetail>,
    /// 강의계획서 (조회하지 않았거나 강의계획서가 없는 강의의 경우 `None`)
    pub syllabus: Option<LectureSyllabus>,
}

mod detail;
mod syllabus;

pub use detail::{AlternativeLecture, LectureChangeHistory, LectureDetail, PrerequisiteLecture};
pub use syllabus::{LectureSyllabus, SyllabusCompetency, SyllabusGradingItem, SyllabusWeeklyPlan};