package
0.0.0-20200529085626-2e2712137b77
Repository: https://github.com/dracit7/courselect.git
Documentation: pkg.go.dev
# Functions
CreateCourse add a new course to the database.
DeleteCourse delete a course from the database.
FacultyLogin checks if requested user exists in the database and if password is correct.
GetAppliedCourseNum return the number of applied courses.
GetAppliedCourses return all applied courses in a page.
GetApplyDeadline returns the deadline of creating courses.
GetCourseByID returns a course with certain ID.
GetFaculty grabs a faculty from database.
GetFacultyName grabs a faculty's name from database.
GetFacultyNum return the number of facultys.
GetFacultys return all facultys in a page.
GetResultTime returns the time of generating result.
GetSelectableCourseNum return the number of selectable courses.
GetSelectableCourses return all selectable courses in a page.
GetSelectedCourseNum return the number of selected courses.
GetSelectedCourses return all selected courses in a page.
GetStudent grabs a student from database.
GetStudentInCourseNum return the number of students.
GetStudentName grabs a student's name from database.
GetStudentNum return the number of students.
GetStudents return all students in a page.
GetStudentsInCourse return all students in a page.
GetTeachingCourseNum return the number of teaching courses.
GetTeachingCourses return all courses submitted by target teacher in a page.
GetTimeRange return the time range of course selection.
PermitCourse delete a course from the database.
SelectCourse adds a course to a student's select list.
Setup sets up the connection to database.
StudentLogin checks if requested user exists in the database and if password is correct.
UnselectCourse adds a course to a student's select list.