fix: 修复课程表DayOfWeek字段omitzero导致周一数据被省略的问题
All checks were successful
Build Backend / build (push) Successful in 8m15s
Build Backend / build-docker (push) Successful in 6m4s

This commit is contained in:
2026-03-19 00:31:57 +08:00
parent a6fa82bf50
commit d387cc493e

View File

@@ -5,7 +5,7 @@ type ScheduleCourseResponse struct {
Name string `json:"name"`
Teacher string `json:"teacher,omitempty"`
Location string `json:"location,omitempty"`
DayOfWeek int `json:"day_of_week,omitzero"`
DayOfWeek int `json:"day_of_week"`
StartSection int `json:"start_section,omitzero"`
EndSection int `json:"end_section,omitzero"`
Weeks []int `json:"weeks"`