application

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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