definitions

package
v0.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

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

type InvitationCodeGenerator interface {
	Generate() (string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL