Add binary marshal for Redis on Course struct

This commit is contained in:
2024-01-29 15:55:14 -06:00
parent eee298ced6
commit 7e3e0be0aa

View File

@@ -1,6 +1,7 @@
package main
import (
"encoding/json"
"fmt"
"strconv"
"strings"
@@ -302,3 +303,7 @@ type Course struct {
Faculty []FacultyItem `json:"faculty"`
MeetingsFaculty []MeetingTimeResponse `json:"meetingsFaculty"`
}
func (course Course) MarshalBinary() ([]byte, error) {
return json.Marshal(course)
}