Documentation ¶
Index ¶
- func BookSession(userId string, detail BookDetail) error
- func GetRoomName(id string) (string, error)
- func USThingHeaders(req *http.Request) http.Header
- func UnbookLibrary(userId string, id string) error
- type Area
- type Attribute
- type BookDetail
- type Booking
- type Class
- type ClassEnrollment
- type ClassEnrollmentInfo
- type ClassQuotaCourse
- type ClassQuotaInfo
- type Data
- type FinalExaminationSchedule
- type Room
- type RoomData
- type Schedule
- type Session
- type SessionsByDay
- type Status
- type StudentInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BookSession ¶
func BookSession(userId string, detail BookDetail) error
func GetRoomName ¶
func UnbookLibrary ¶
Types ¶
type Area ¶
type BookDetail ¶
type Booking ¶
type Booking struct { ID string `json:"id"` Name string `json:"name"` RoomID string `json:"room_id"` StartTime string `json:"start_time"` EndTime string `json:"end_time"` Type string `json:"type"` CreateBy string `json:"create_by"` Description string `json:"description"` IcalUID string `json:"ical_uid"` UserClass string `json:"userclass"` StartTimeYYYYMMDD string `json:"start_time_YYYYMMDD"` StartTimeHhmm string `json:"start_time_hhmm"` EndTimeYYYYMMDD string `json:"end_time_YYYYMMDD"` EndTimeHhmm string `json:"end_time_hhmm"` }
Under data.booking field in JSON
func GetMyBooking ¶
type Class ¶
type Class struct { Section string `json:"section"` ClassNbr int `json:"classNbr"` ClassType string `json:"classType"` ComponentType string `json:"componentType"` AssociatedClass int `json:"associatedClass"` Remarks string `json:"remarks"` EnrlCap int `json:"enrlCap"` EnrlTot int `json:"enrlTot"` WaitTot int `json:"waitTot"` Consent bool `json:"consent"` ClassOpen bool `json:"classOpen"` // ReserveCap []string `json:"reserveCap"` Schedules []Schedule `json:"schedules"` }
type ClassEnrollment ¶
type ClassEnrollment struct { TermCode string `json:"termCode"` TermName string `json:"termName"` ClassNumber int32 `json:"classNumber"` CourseCode string `json:"crseCode"` CourseTitle string `json:"crseTitle"` CreditUnit string `json:"crseUnit"` ClassSection string `json:"classSection"` FinalExaminationSchedule []FinalExaminationSchedule `json:"studentFinalExamSchedule"` }
type ClassEnrollmentInfo ¶
type ClassEnrollmentInfo struct { // StudentID string `json:"stdtID"` Info []StudentInfo `json:"stdtInfo"` }
func GetClassEnrollment ¶
func GetClassEnrollment(userId string) (ClassEnrollmentInfo, error)
type ClassQuotaCourse ¶
type ClassQuotaCourse struct { CrseId string `json:"crseId"` AcadCareer string `json:"acadCareer"` Subject string `json:"subject"` CatalogNbr string `json:"catalogNbr"` CrseCode string `json:"crseCode"` CrseDesc string `json:"crseDesc"` LongDesc string `json:"longDesc"` PrevCrseCode string `json:"prevCrseCode"` PreReq string `json:"preReq"` CoReq string `json:"coReq"` Exclusion string `json:"exclusion"` Credit int `json:"credit"` Attributes []Attribute `json:"attributes"` Classes []Class `json:"classes"` }
type ClassQuotaInfo ¶
type ClassQuotaInfo struct { Term string `json:"term"` TermDesc string `json:"term_desc"` Courses []ClassQuotaCourse `json:"courses"` }
func GetClassQuotas ¶
func GetClassQuotas(userId string) (ClassQuotaInfo, error)
type FinalExaminationSchedule ¶
type FinalExaminationSchedule struct { TermCode string `json:"termCode"` CourseCode string `json:"crseCode"` ClassSection string `json:"classSection"` ExamSeqNumber int `json:"examSeqNbr"` ExamFacilityID string `json:"examFacilityId"` ExamRoom string `json:"examRoom"` ExamDate string `json:"examDate"` ExamStartTime string `json:"examStartTime"` ExamEndTime string `json:"examEndTime"` ExamRemarks string `json:"examRemarks"` }
type Room ¶
type Room struct { ID string `json:"id"` RoomName string `json:"room_name"` Capacity string `json:"capacity"` // CustomHTML string `json:"custom_html"` BookingLink string `json:"booking_link"` // CalendarLink string `json:"calendar_link"` // StartDate string `json:"start_date"` // EndDate string `json:"end_date"` Sessions []Session `json:"sessions"` }
func GetAvailableRooms ¶
func GetAvailableRooms(rooms *SessionsByDay, timeSlots []string) []Room
type Session ¶
type Session struct { // StartTime Time `json:"start_time"` //StartTimeYYYYMMDD string `json:"start_time_YYYYMMDD"` StartTimeHhmm string `json:"start_time_hhmm"` //EndTime Time `json:"end_time"` //EndTimeYYYYMMDD string `json:"end_time_YYYYMMDD"` EndTimeHhmm string `json:"end_time_hhmm"` Status Status `json:"status"` }
type SessionsByDay ¶
func GetSessionsByDay ¶
type StudentInfo ¶
type StudentInfo struct { PlanName string `json:"planName"` Enrollments []ClassEnrollment `json:"studentClassEnrl"` }
Click to show internal directories.
Click to hide internal directories.