Documentation ¶
Index ¶
- type StudentUsecase
- func (s *StudentUsecase) CancelEnrollmentWebinar(studentID string, param entity.CancelEnrollmentWebinarParam) error
- func (s *StudentUsecase) EnrollWebinar(studentID string, param entity.EnrollWebinarParam) error
- func (s *StudentUsecase) GetAllRegisteredWebinar(studentID string) ([]entity.Webinar, error)
- func (s *StudentUsecase) GetStudentProfile(id string) (entity.Student, error)
- func (s *StudentUsecase) GetWebinarByID(id int64) (entity.Webinar, error)
- func (s *StudentUsecase) SearchWebinarBySlug(slug string) ([]entity.Webinar, error)
- func (s *StudentUsecase) StudentSignIn(id string) error
- func (s *StudentUsecase) StudentSignUp(student entity.Student) error
- type TeacherUsecase
- func (t *TeacherUsecase) ApproveWaitingList(id string, studentID string, webinarID int64) error
- func (t *TeacherUsecase) CreateNewWebinar(id string, param entity.CreateWebinarParam) error
- func (t *TeacherUsecase) DeleteWebinar(id string, param entity.DeleteWebinarParam) error
- func (t *TeacherUsecase) GetAllWebinar(teacherID string) ([]entity.Webinar, error)
- func (t *TeacherUsecase) GetTeacherProfile(id string) (entity.Teacher, error)
- func (t *TeacherUsecase) GetWebinarByID(id int64) (entity.Webinar, error)
- func (t *TeacherUsecase) RejectWaitingList(id string, studentID string, webinarID int64) error
- func (t *TeacherUsecase) TeacherSignIn(id string) error
- func (t *TeacherUsecase) TeacherSignUp(teacher entity.Teacher) error
- func (t *TeacherUsecase) UpdateWebinar(id string, param entity.UpdateWebinarParam) error
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
Click to show internal directories.
Click to hide internal directories.