Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StudentRepo ¶
type StudentRepo interface { IsUserExist(id string) error InsertNewUser(student entity.Student) error GetProfile(id string) (entity.Student, error) GetAllRegisteredWebinar(id string) ([]entity.Webinar, error) EnrollWebinar(id string, param entity.EnrollWebinarParam) error CancelEnrollmentWebinar(id string, param entity.CancelEnrollmentWebinarParam) error }
type StudentUC ¶
type StudentUC interface { StudentSignIn(id string) error StudentSignUp(student entity.Student) error GetStudentProfile(id string) (entity.Student, error) SearchWebinarBySlug(slug string) ([]entity.Webinar, error) GetWebinarByID(id int64) (entity.Webinar, error) EnrollWebinar(studentID string, param entity.EnrollWebinarParam) error GetAllRegisteredWebinar(studentID string) ([]entity.Webinar, error) CancelEnrollmentWebinar(studentID string, param entity.CancelEnrollmentWebinarParam) error }
type TeacherRepo ¶
type TeacherUC ¶
type TeacherUC interface { TeacherSignIn(id string) error TeacherSignUp(teacher entity.Teacher) error GetTeacherProfile(id string) (entity.Teacher, error) GetAllWebinar(teacherID string) ([]entity.Webinar, error) GetWebinarByID(id int64) (entity.Webinar, error) CreateNewWebinar(id string, param entity.CreateWebinarParam) error UpdateWebinar(id string, param entity.UpdateWebinarParam) error DeleteWebinar(id string, param entity.DeleteWebinarParam) error ApproveWaitingList(id string, studentID string, webinarID int64) error RejectWaitingList(id string, studentID string, webinarID int64) error }
type WebinarRepo ¶
type WebinarRepo interface { // Teacher GetAllWebinar(id string) ([]entity.Webinar, error) InsertNewWebinar(id string, param entity.CreateWebinarParam) error UpdateWebinar(id string, param entity.UpdateWebinarParam) error DeleteWebinar(id string, param entity.DeleteWebinarParam) error // Student GetWebinarBySlug(slug string) ([]entity.Webinar, error) GetWebinarByID(id int64) (entity.Webinar, error) }
Click to show internal directories.
Click to hide internal directories.