internal

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: 1 Imported by: 0

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 TeacherRepo interface {
	IsUserExist(id string) error
	InsertNewUser(teacher entity.Teacher) error
	GetProfile(id string) (entity.Teacher, error)
	ApproveWaitingList(id string, studentID string, webinarID int64) error
	RejectWaitingList(id string, studentID string, webinarID int64) error
}

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)
}

Directories

Path Synopsis
app
delivery

Jump to

Keyboard shortcuts

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