-
Notifications
You must be signed in to change notification settings - Fork 5
/
service.go
23 lines (13 loc) · 903 Bytes
/
service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package jw_scraper
type HttpService interface {
GetLoginPage() (page string, err error)
Login(username, password, viewState string) (jwbCookie string, err error)
GetDefaultCourses(stuId, jwbCookie string) (page string, status int, err error)
GetCourses(stuId, jwbCookie, schoolYear, semester, viewState, eventTarget string) (page string, status int, err error)
GetDefaultExams(stuId, jwbCookie string) (page string, status int, err error)
GetExams(stuId, jwbCookie, schoolYear, semester, viewState, eventTarget string) (page string, status int, err error)
GetScoresBase(stuId, jwbCookie string) (page string, status int, err error)
GetScores(stuId, jwbCookie, schoolYear, viewState string) (page string, status int, err error)
GetMajorScores(stuId, jwbCookie string) (page string, status int, err error)
GetTotalCredit(stuId, jwbCookie string) (page string, status int, err error)
}