usecase

package
v0.0.0-...-8674a3e Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StudentUsecase

type StudentUsecase struct {
	// contains filtered or unexported fields
}

func NewStudentUsecase

func NewStudentUsecase(repoStudent internal.StudentRepo, repoWebinar internal.WebinarRepo) *StudentUsecase

func (*StudentUsecase) CancelEnrollmentWebinar

func (s *StudentUsecase) CancelEnrollmentWebinar(studentID string, param entity.CancelEnrollmentWebinarParam) error

func (*StudentUsecase) EnrollWebinar

func (s *StudentUsecase) EnrollWebinar(studentID string, param entity.EnrollWebinarParam) error

func (*StudentUsecase) GetAllRegisteredWebinar

func (s *StudentUsecase) GetAllRegisteredWebinar(studentID string) ([]entity.Webinar, error)

func (*StudentUsecase) GetStudentProfile

func (s *StudentUsecase) GetStudentProfile(id string) (entity.Student, error)

func (*StudentUsecase) GetWebinarByID

func (s *StudentUsecase) GetWebinarByID(id int64) (entity.Webinar, error)

func (*StudentUsecase) SearchWebinarBySlug

func (s *StudentUsecase) SearchWebinarBySlug(slug string) ([]entity.Webinar, error)

func (*StudentUsecase) StudentSignIn

func (s *StudentUsecase) StudentSignIn(id string) error

func (*StudentUsecase) StudentSignUp

func (s *StudentUsecase) StudentSignUp(student entity.Student) error

type TeacherUsecase

type TeacherUsecase struct {
	// contains filtered or unexported fields
}

func NewTeacherUsecase

func NewTeacherUsecase(repoTeacher internal.TeacherRepo, repoWebinar internal.WebinarRepo) *TeacherUsecase

func (*TeacherUsecase) ApproveWaitingList

func (t *TeacherUsecase) ApproveWaitingList(id string, studentID string, webinarID int64) error

func (*TeacherUsecase) CreateNewWebinar

func (t *TeacherUsecase) CreateNewWebinar(id string, param entity.CreateWebinarParam) error

func (*TeacherUsecase) DeleteWebinar

func (t *TeacherUsecase) DeleteWebinar(id string, param entity.DeleteWebinarParam) error

func (*TeacherUsecase) GetAllWebinar

func (t *TeacherUsecase) GetAllWebinar(teacherID string) ([]entity.Webinar, error)

func (*TeacherUsecase) GetTeacherProfile

func (t *TeacherUsecase) GetTeacherProfile(id string) (entity.Teacher, error)

func (*TeacherUsecase) GetWebinarByID

func (t *TeacherUsecase) GetWebinarByID(id int64) (entity.Webinar, error)

func (*TeacherUsecase) RejectWaitingList

func (t *TeacherUsecase) RejectWaitingList(id string, studentID string, webinarID int64) error

func (*TeacherUsecase) TeacherSignIn

func (t *TeacherUsecase) TeacherSignIn(id string) error

func (*TeacherUsecase) TeacherSignUp

func (t *TeacherUsecase) TeacherSignUp(teacher entity.Teacher) error

func (*TeacherUsecase) UpdateWebinar

func (t *TeacherUsecase) UpdateWebinar(id string, param entity.UpdateWebinarParam) error

Jump to

Keyboard shortcuts

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