Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassRepository ¶
type ClassRepository interface { GetClassesByLectureID(lectureID int64, limit int, offset int) (model.Classes, error) GetClassById(id int64) (class *model.Class, err error) CreateClass(class *model.Class) (*model.Class, error) UpdateClass(help *model.Class) (*model.Class, error) DeleteClass(id int64, lectureID int64) (int64, error) }
type CommentRepository ¶
type CommentRepository interface { GetCommentsByHelpID(helpID int64, limit int, offset int) (model.Comments, error) GetCommentsByUserTypeAndUserID(userType model.UserType, userID int64, limit int, offset int) (model.Comments, error) CreateComment(comment *model.Comment) (*model.Comment, error) UpdateComment(comment *model.Comment) (*model.Comment, error) DeleteComment(id int64, userType model.UserType, userID int64) (int64, error) }
type HelpRepository ¶
type HelpRepository interface { GetHelpsByStudentID(studentID int64, limit int, offset int) (model.Helps, error) GetHelpsByLectureID(lectureID int64, limit int, offset int) (model.Helps, error) CreateHelp(help *model.Help) (*model.Help, error) UpdateHelp(help *model.Help) (*model.Help, error) DeleteHelp(id int64, lectureID int64, studentID int64) (int64, error) DeleteHelpWithoutStudentId(id int64, lectureID int64) (int64, error) }
type LectureRepository ¶
type LectureRepository interface { GetParticipatedLecturesOfStudent(studentID int64, limit int, offset int) (total int64, lectures model.Lectures, err error) GetParticipatedLecturesOfAssistant(studentID int64, limit int, offset int) (total int64, lectures model.Lectures, err error) GetParticipatedLecturesOfTeacher(teacherID int64, limit int, offset int) (total int64, lectures model.Lectures, err error) GetLectures(limit int, offset int) (total int64, lectures model.Lectures, err error) GetLectureById(id int64) (*model.Lecture, error) CreateLecture(lecture *model.Lecture) (*model.Lecture, error) UpdateLecture(lecture *model.Lecture) (*model.Lecture, error) DeleteLecture(id int64) (int64, error) }
type ParticipationRepository ¶
type ParticipationRepository interface { CreateStudentLecture(studentLecture *model.StudentLecture) (*model.StudentLecture, error) CreateAssistantLecture(assistantLecture *model.AssistantLecture) (*model.AssistantLecture, error) CreateTeacherLecture(teacherLecture *model.TeacherLecture) (*model.TeacherLecture, error) DeleteStudentLecture(studentID int64, lectureID int64) (int64, error) DeleteAssistantLecture(studentID int64, lectureID int64) (int64, error) DeleteTeacherLecture(teacherID int64, lectureID int64) (int64, error) }
type TaskRepository ¶
type UserRepository ¶
type UserRepository interface { GetStudents(limit, offset int) (model.Students, error) GetAssistants(limit, offset int) (model.Assistants, error) GetTeachers(limit, offset int) (model.Teachers, error) GetStudentById(int64) (*model.Student, error) GetAssistantById(int64) (*model.Assistant, error) GetTeacherById(int64) (*model.Teacher, error) GetAdminById(int64) (*model.Admin, error) GetStudentByStudentNo(studentNo string) (*model.Student, error) GetAssistantByStudentNo(studentNo string) (*model.Assistant, error) GetTeacherByEmail(email string) (*model.Teacher, error) GetAdminByEmail(email string) (*model.Admin, error) GetParticipatingStudentsOfLecture(lectureID int64, limit int, offset int) (model.Students, error) GetParticipatingAssistantsOfLecture(lectureID int64, limit int, offset int) (model.Assistants, error) GetParticipatingTeachersOfLecture(lectureID int64, limit int, offset int) (model.Teachers, error) InsertStudent(student *model.Student) (*model.Student, error) InsertAssistant(assistant *model.Assistant) (*model.Assistant, error) InsertTeacher(teacher *model.Teacher) (*model.Teacher, error) InsertAdmin(admin *model.Admin) (*model.Admin, error) UpdateStudent(student *model.Student) (*model.Student, error) UpdateAssistant(assistant *model.Assistant) (*model.Assistant, error) UpdateTeacher(teacher *model.Teacher) (*model.Teacher, error) }
Click to show internal directories.
Click to hide internal directories.