Documentation ¶
Index ¶
- type CoursesUseCases
- func (useCases *CoursesUseCases) GetEnrolledCourses(userUUID string) (*dtos.EnrolledCoursesDto, error)
- func (useCases *CoursesUseCases) GetInvitationCode(dto dtos.GetInvitationCodeDTO) (string, error)
- func (useCases *CoursesUseCases) GetRandomColor() (*entities.Color, error)
- func (useCases *CoursesUseCases) JoinCourseUsingInvitationCode(dto *dtos.JoinCourseUsingInvitationCodeDTO) error
- func (useCases *CoursesUseCases) SaveCourse(dto *dtos.CreateCourseDTO) (*entities.Course, 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) GetEnrolledCourses ¶ added in v0.12.0
func (useCases *CoursesUseCases) GetEnrolledCourses(userUUID string) (*dtos.EnrolledCoursesDto, 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) error
func (*CoursesUseCases) SaveCourse ¶
func (useCases *CoursesUseCases) SaveCourse(dto *dtos.CreateCourseDTO) (*entities.Course, error)
Click to show internal directories.
Click to hide internal directories.