---
# System prepended metadata

title: get-timetable 取得課表
tags: [timetable]

---

###### tags: `timetable`
# get-timetable 取得課表
## /get-timetable
front to back

| 說明     | key         | value  |
| -------- | ----------- | ------ |
| 帳號     | uid         | string |
| 學年     | schoolYear | string   |
| 學期     | semester   | string   |

back to front

| 說明     | key        | value    |
| -------- | ---------- | -------- |
| 學校     | school     | string   |
| 學年     | schoolYear | string   |
| 學期     | semester   | string   |
| 開始日期 | startDate  | datetime |
| 結束日期 | endDate    | datetime |
| 課程     | subject    | object   |
&nbsp;
&nbsp;

| 課程{}   |             |          |
| -------- | ----------- | -------- |
| 課程名稱 | subjectName | string   |
| 課程開始 | startTime   | datetime |
| 課程結束 | endTime     | datetime |
| 星期     | week        | int      |
| 節次     | section     | int      |

---
uid:
 >account>user_id

schoolYear:
 >personal_timetable>semester

兩個會合起來存回資料庫

semester:
 >personal_timetable>semester