- Migrate all log.Printf/log.Println calls to structured zap logging - Use cmp.Or for cleaner default value handling - Replace manual loops with slices.ContainsFunc/IndexFunc - Add batch query methods (IsLikedBatch, IsFavoritedBatch) to solve N+1 problem - Update JSON tags from omitempty to omitzero for numeric fields - Use errgroup-style wg.Go for worker goroutines - Remove duplicate casbin/v2 dependency (keeping v3) - Add plans/ to gitignore
14 lines
454 B
Go
14 lines
454 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,omitzero"`
|
|
StartSection int `json:"start_section,omitzero"`
|
|
EndSection int `json:"end_section,omitzero"`
|
|
Weeks []int `json:"weeks"`
|
|
Color string `json:"color,omitempty"`
|
|
}
|