Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoursesRepository ¶
type CoursesRepository interface { SaveCourse(dto *dtos.CreateCourseDTO) (*entities.Course, error) GetCourseByUUID(uuid string) (*entities.Course, error) SaveInvitationCode(courseUUID, invitationCode string) error GetInvitationCode(courseUUID string) (string, error) GetCourseByInvitationCode(invitationCode string) (*entities.Course, error) AddStudentToCourse(studentUUID, courseUUID string) error IsUserInCourse(userUUID, courseUUID string) (bool, error) GetEnrolledCourses(studentUUID string) (*dtos.EnrolledCoursesDto, error) GetEnrolledStudents(courseUUID string) ([]*dtos.EnrolledStudentDTO, error) SetStudentStatus(dto *dtos.SetUserStatusDTO) error GetRandomColor() (*entities.Color, error) ToggleCourseVisibility(courseUUID, studentUUID string) (isHiddenAfterUpdate bool, err error) UpdateCourseName(dtos.RenameCourseDTO) error GetCourseLaboratories(courseUUID string) ([]*dtos.BaseLaboratoryDTO, error) GetCourseActiveLaboratories(courseUUID string) ([]*dtos.BaseLaboratoryDTO, error) DoesTeacherOwnsCourse(teacherUUID, courseUUID string) (bool, error) }
type InvitationCodeGenerator ¶
Click to show internal directories.
Click to hide internal directories.