Files
backend/internal/dto/schedule_dto.go
lan d387cc493e
All checks were successful
Build Backend / build (push) Successful in 8m15s
Build Backend / build-docker (push) Successful in 6m4s
fix: 修复课程表DayOfWeek字段omitzero导致周一数据被省略的问题
2026-03-19 00:31:57 +08:00

14 lines
445 B
Go

package dto
type ScheduleCourseResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Teacher string `json:"teacher,omitempty"`
Location string `json:"location,omitempty"`
DayOfWeek int `json:"day_of_week"`
StartSection int `json:"start_section,omitzero"`
EndSection int `json:"end_section,omitzero"`
Weeks []int `json:"weeks"`
Color string `json:"color,omitempty"`
}