Documentation ¶
Index ¶
- type CoursesUseCases
- func (useCases *CoursesUseCases) AddStudentToCourse(dto *dtos.AddStudentToCourseDTO) error
- func (useCases *CoursesUseCases) GetCourse(userUUID, courseUUID string) (*entities.Course, error)
- func (useCases *CoursesUseCases) GetEnrolledCourses(userUUID string) (*dtos.EnrolledCoursesDto, error)
- func (useCases *CoursesUseCases) GetEnrolledStudents(teacherUUID, courseUUID string) ([]*dtos.EnrolledStudentDTO, error)
- func (useCases *CoursesUseCases) GetInvitationCode(dto dtos.GetInvitationCodeDTO) (string, error)
- func (useCases *CoursesUseCases) GetRandomColor() (*entities.Color, error)
- func (useCases *CoursesUseCases) JoinCourseUsingInvitationCode(dto *dtos.JoinCourseUsingInvitationCodeDTO) (*entities.Course, error)
- func (useCases *CoursesUseCases) SaveCourse(dto *dtos.CreateCourseDTO) (*entities.Course, error)
- func (useCases *CoursesUseCases) ToggleCourseVisibility(courseUUID, userUUID string) (bool, error)
- func (useCases *CoursesUseCases) UpdateCourseName(dto dtos.RenameCourseDTO) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoursesUseCases ¶
type CoursesUseCases struct { Repository definitions.CoursesRepository InvitationCodeGenerator definitions.InvitationCodeGenerator }
func (*CoursesUseCases) AddStudentToCourse ¶ added in v0.16.0
func (useCases *CoursesUseCases) AddStudentToCourse(dto *dtos.AddStudentToCourseDTO) error
func (*CoursesUseCases) GetCourse ¶ added in v0.18.0
func (useCases *CoursesUseCases) GetCourse(userUUID, courseUUID string) (*entities.Course, error)
func (*CoursesUseCases) GetEnrolledCourses ¶ added in v0.12.0
func (useCases *CoursesUseCases) GetEnrolledCourses(userUUID string) (*dtos.EnrolledCoursesDto, error)
func (*CoursesUseCases) GetEnrolledStudents ¶ added in v0.17.0
func (useCases *CoursesUseCases) GetEnrolledStudents(teacherUUID, courseUUID string) ([]*dtos.EnrolledStudentDTO, error)
func (*CoursesUseCases) GetInvitationCode ¶ added in v0.10.0
func (useCases *CoursesUseCases) GetInvitationCode(dto dtos.GetInvitationCodeDTO) (string, error)
func (*CoursesUseCases) GetRandomColor ¶
func (useCases *CoursesUseCases) GetRandomColor() (*entities.Color, error)
func (*CoursesUseCases) JoinCourseUsingInvitationCode ¶ added in v0.11.0
func (useCases *CoursesUseCases) JoinCourseUsingInvitationCode(dto *dtos.JoinCourseUsingInvitationCodeDTO) (*entities.Course, error)
func (*CoursesUseCases) SaveCourse ¶
func (useCases *CoursesUseCases) SaveCourse(dto *dtos.CreateCourseDTO) (*entities.Course, error)
func (*CoursesUseCases) ToggleCourseVisibility ¶ added in v0.13.0
func (useCases *CoursesUseCases) ToggleCourseVisibility(courseUUID, userUUID string) (bool, error)
func (*CoursesUseCases) UpdateCourseName ¶ added in v0.14.0
func (useCases *CoursesUseCases) UpdateCourseName(dto dtos.RenameCourseDTO) error
Click to show internal directories.
Click to hide internal directories.