Documentation ¶
Index ¶
- func NewAuthInteractor(repository repository.UserRepository, output port.AuthOutput) (port.AuthUseCase, error)
- type AuthInteractor
- func (interactor *AuthInteractor) AuthorizeAdmin(email string, password string) (*dto.AuthorizeAdminOutputForm, error)
- func (interactor *AuthInteractor) AuthorizeAssistant(studentNo string, password string) (*dto.AuthorizeAssistantOutputForm, error)
- func (interactor *AuthInteractor) AuthorizeStudent(studentNo string, password string) (*dto.AuthorizeStudentOutputForm, error)
- func (interactor *AuthInteractor) AuthorizeTeacher(email string, password string) (*dto.AuthorizeTeacherOutputForm, error)
- type ClassInteractor
- func (interactor *ClassInteractor) CreateClass(form *dto.CreateClassInputForm) (*dto.CreateClassOutputForm, error)
- func (interactor *ClassInteractor) DeleteClass(id int64, lectureID int64) (*dto.DeleteClassOutputForm, error)
- func (interactor *ClassInteractor) GetClassById(id int64) (*dto.GetClassByIdOutputForm, error)
- func (interactor *ClassInteractor) GetClassesByLectureId(lectureID int64, limit int, offset int) (dto.GetClassesOutputForm, error)
- func (interactor *ClassInteractor) UpdateClass(form *dto.UpdateClassInputForm) (*dto.UpdateClassOutputForm, error)
- type CommentInteractor
- func (interactor *CommentInteractor) CreateComment(form *dto.CreateCommentInputForm) (*dto.CreateCommentOutputForm, error)
- func (interactor *CommentInteractor) DeleteComment(id int64, userType model.UserType, userID int64) (*dto.DeleteCommentOutputForm, error)
- func (interactor *CommentInteractor) GetCommentsByHelpID(helpID int64, limit int, offset int) (dto.GetCommentsOutputForm, error)
- func (interactor *CommentInteractor) UpdateComment(form *dto.UpdateCommentInputForm) (*dto.UpdateCommentOutputForm, error)
- type HelpInteractor
- func (interactor *HelpInteractor) CreateHelp(form *dto.CreateHelpInputForm) (*dto.CreateHelpOutputForm, error)
- func (interactor *HelpInteractor) DeleteHelp(id int64, lectureID int64, studentID int64) (*dto.DeleteHelpOutputForm, error)
- func (interactor *HelpInteractor) DeleteHelpByAssistant(id int64, lectureID int64) (*dto.DeleteHelpOutputForm, error)
- func (interactor *HelpInteractor) DeleteHelpWithoutStudentId(id int64, lectureID int64) (*dto.DeleteHelpOutputForm, error)
- func (interactor *HelpInteractor) GetHelpsByLectureID(lectureID int64, limit int, offset int) (dto.GetHelpsOutputForm, error)
- func (interactor *HelpInteractor) UpdateHelp(form *dto.UpdateHelpInputForm) (*dto.UpdateHelpOutputForm, error)
- type LectureInteractor
- func (interactor *LectureInteractor) CreateLecture(form *dto.CreateLectureInputForm) (*dto.CreateLectureOutputForm, error)
- func (interactor *LectureInteractor) DeleteLecture(id int64) (*dto.DeleteLectureOutputForm, error)
- func (interactor *LectureInteractor) GetLectureById(id int64) (*dto.GetLectureByIdOutputForm, error)
- func (interactor *LectureInteractor) GetLectures(limit int, offset int) (dto.GetTotalLecturesOutputForm, error)
- func (interactor *LectureInteractor) GetParticipatingLecturesOfAssistant(studentID int64, limit int, offset int) (dto.GetTotalLecturesOutputForm, error)
- func (interactor *LectureInteractor) GetParticipatingLecturesOfStudent(studentID int64, limit int, offset int) (dto.GetTotalLecturesOutputForm, error)
- func (interactor *LectureInteractor) GetParticipatingLecturesOfTeacher(teacherID int64, limit int, offset int) (dto.GetTotalLecturesOutputForm, error)
- func (interactor *LectureInteractor) UpdateLecture(form *dto.UpdateLectureInputForm) (*dto.UpdateLectureOutputForm, error)
- type ParticipationInteractor
- func (interactor *ParticipationInteractor) CreateAssistantLecture(form *dto.CreateAssistantLectureInputForm) (*dto.CreateAssistantLectureOutputForm, error)
- func (interactor *ParticipationInteractor) CreateStudentLecture(form *dto.CreateStudentLectureInputForm) (*dto.CreateStudentLectureOutputForm, error)
- func (interactor *ParticipationInteractor) CreateTeacherLecture(form *dto.CreateTeacherLectureInputForm) (*dto.CreateTeacherLectureOutputForm, error)
- func (interactor *ParticipationInteractor) DeleteAssistantLecture(studentID int64, lectureID int64) (*dto.DeleteAssistantLectureOutputForm, error)
- func (interactor *ParticipationInteractor) DeleteStudentLecture(studentID int64, lectureID int64) (*dto.DeleteStudentLectureOutputForm, error)
- func (interactor *ParticipationInteractor) DeleteTeacherLecture(teacherID int64, lectureID int64) (*dto.DeleteTeacherLectureOutputForm, error)
- type TaskInteractor
- func (interactor *TaskInteractor) CreateTask(form *dto.CreateTaskInputForm) (*dto.CreateTaskOutputForm, error)
- func (interactor *TaskInteractor) DeleteTask(id int64, classID int64) (*dto.DeleteTaskOutputForm, error)
- func (interactor *TaskInteractor) GetTasksByClassId(classId int64, limit int, offset int) (dto.GetTasksByClassIdOutputForm, error)
- func (interactor *TaskInteractor) UpdateTask(form *dto.UpdateTaskInputForm) (*dto.UpdateTaskOutputForm, error)
- type UserInteractor
- func (interactor *UserInteractor) CreateAssistant(form *dto.CreateAssistantInputForm) (*dto.CreateAssistantOutputForm, error)
- func (interactor *UserInteractor) CreateStudent(form *dto.CreateStudentInputForm) (*dto.CreateStudentOutputForm, error)
- func (interactor *UserInteractor) CreateTeacher(form *dto.CreateTeacherInputForm) (*dto.CreateTeacherOutputForm, error)
- func (interactor *UserInteractor) GetAssistantById(id int64) (*dto.GetAssistantOutputForm, error)
- func (interactor *UserInteractor) GetAssistants(limit int, offset int) (dto.GetAssistantsOutputForm, error)
- func (interactor *UserInteractor) GetAssistantsByLectureId(lectureID int64, limit int, offset int) (dto.GetAssistantsOutputForm, error)
- func (interactor *UserInteractor) GetStudentById(id int64) (*dto.GetStudentOutputForm, error)
- func (interactor *UserInteractor) GetStudents(limit int, offset int) (dto.GetStudentsOutputForm, error)
- func (interactor *UserInteractor) GetStudentsByLectureId(lectureID int64, limit int, offset int) (dto.GetStudentsOutputForm, error)
- func (interactor *UserInteractor) GetTeacherById(id int64) (*dto.GetTeacherOutputForm, error)
- func (interactor *UserInteractor) GetTeachers(limit int, offset int) (dto.GetTeachersOutputForm, error)
- func (interactor *UserInteractor) GetTeachersByLectureId(lectureID int64, limit int, offset int) (dto.GetTeachersOutputForm, error)
- func (interactor *UserInteractor) UpdateAssistant(form *dto.UpdateAssistantInputForm) (*dto.UpdateAssistantOutputForm, error)
- func (interactor *UserInteractor) UpdateStudent(form *dto.UpdateStudentInputForm) (*dto.UpdateStudentOutputForm, error)
- func (interactor *UserInteractor) UpdateTeacher(form *dto.UpdateTeacherInputForm) (*dto.UpdateTeacherOutputForm, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthInteractor ¶
func NewAuthInteractor(repository repository.UserRepository, output port.AuthOutput) (port.AuthUseCase, error)
Types ¶
type AuthInteractor ¶
type AuthInteractor struct { UserRepository repository.UserRepository AuthOutput port.AuthOutput }
func (*AuthInteractor) AuthorizeAdmin ¶
func (interactor *AuthInteractor) AuthorizeAdmin(email string, password string) (*dto.AuthorizeAdminOutputForm, error)
func (*AuthInteractor) AuthorizeAssistant ¶
func (interactor *AuthInteractor) AuthorizeAssistant(studentNo string, password string) (*dto.AuthorizeAssistantOutputForm, error)
func (*AuthInteractor) AuthorizeStudent ¶
func (interactor *AuthInteractor) AuthorizeStudent(studentNo string, password string) (*dto.AuthorizeStudentOutputForm, error)
func (*AuthInteractor) AuthorizeTeacher ¶
func (interactor *AuthInteractor) AuthorizeTeacher(email string, password string) (*dto.AuthorizeTeacherOutputForm, error)
type ClassInteractor ¶
type ClassInteractor struct { ClassRepository repository.ClassRepository ClassOutput port.ClassOutput }
func NewClassInteractor ¶
func NewClassInteractor(repository repository.ClassRepository, output port.ClassOutput) (*ClassInteractor, error)
func (*ClassInteractor) CreateClass ¶
func (interactor *ClassInteractor) CreateClass(form *dto.CreateClassInputForm) (*dto.CreateClassOutputForm, error)
func (*ClassInteractor) DeleteClass ¶
func (interactor *ClassInteractor) DeleteClass(id int64, lectureID int64) (*dto.DeleteClassOutputForm, error)
func (*ClassInteractor) GetClassById ¶
func (interactor *ClassInteractor) GetClassById(id int64) (*dto.GetClassByIdOutputForm, error)
func (*ClassInteractor) GetClassesByLectureId ¶
func (interactor *ClassInteractor) GetClassesByLectureId(lectureID int64, limit int, offset int) (dto.GetClassesOutputForm, error)
func (*ClassInteractor) UpdateClass ¶
func (interactor *ClassInteractor) UpdateClass(form *dto.UpdateClassInputForm) (*dto.UpdateClassOutputForm, error)
type CommentInteractor ¶
type CommentInteractor struct { CommentRepository repository.CommentRepository Output port.CommentOutput }
func NewCommentInteractor ¶
func NewCommentInteractor(repository repository.CommentRepository, output port.CommentOutput) (*CommentInteractor, error)
func (*CommentInteractor) CreateComment ¶
func (interactor *CommentInteractor) CreateComment(form *dto.CreateCommentInputForm) (*dto.CreateCommentOutputForm, error)
func (*CommentInteractor) DeleteComment ¶
func (interactor *CommentInteractor) DeleteComment(id int64, userType model.UserType, userID int64) (*dto.DeleteCommentOutputForm, error)
func (*CommentInteractor) GetCommentsByHelpID ¶
func (interactor *CommentInteractor) GetCommentsByHelpID(helpID int64, limit int, offset int) (dto.GetCommentsOutputForm, error)
func (*CommentInteractor) UpdateComment ¶
func (interactor *CommentInteractor) UpdateComment(form *dto.UpdateCommentInputForm) (*dto.UpdateCommentOutputForm, error)
type HelpInteractor ¶
type HelpInteractor struct { HelpOutput port.HelpOutput HelpRepository repository.HelpRepository }
func NewHelpInteractor ¶
func NewHelpInteractor(output port.HelpOutput, repository repository.HelpRepository) (*HelpInteractor, error)
func (*HelpInteractor) CreateHelp ¶
func (interactor *HelpInteractor) CreateHelp(form *dto.CreateHelpInputForm) (*dto.CreateHelpOutputForm, error)
func (*HelpInteractor) DeleteHelp ¶
func (interactor *HelpInteractor) DeleteHelp(id int64, lectureID int64, studentID int64) (*dto.DeleteHelpOutputForm, error)
func (*HelpInteractor) DeleteHelpByAssistant ¶
func (interactor *HelpInteractor) DeleteHelpByAssistant(id int64, lectureID int64) (*dto.DeleteHelpOutputForm, error)
func (*HelpInteractor) DeleteHelpWithoutStudentId ¶
func (interactor *HelpInteractor) DeleteHelpWithoutStudentId(id int64, lectureID int64) (*dto.DeleteHelpOutputForm, error)
func (*HelpInteractor) GetHelpsByLectureID ¶
func (interactor *HelpInteractor) GetHelpsByLectureID(lectureID int64, limit int, offset int) (dto.GetHelpsOutputForm, error)
func (*HelpInteractor) UpdateHelp ¶
func (interactor *HelpInteractor) UpdateHelp(form *dto.UpdateHelpInputForm) (*dto.UpdateHelpOutputForm, error)
type LectureInteractor ¶
type LectureInteractor struct { LectureRepository repository.LectureRepository LectureOutput port.LectureOutput }
func NewLectureInteractor ¶
func NewLectureInteractor(repository repository.LectureRepository, output port.LectureOutput) (*LectureInteractor, error)
func (*LectureInteractor) CreateLecture ¶
func (interactor *LectureInteractor) CreateLecture(form *dto.CreateLectureInputForm) (*dto.CreateLectureOutputForm, error)
func (*LectureInteractor) DeleteLecture ¶
func (interactor *LectureInteractor) DeleteLecture(id int64) (*dto.DeleteLectureOutputForm, error)
func (*LectureInteractor) GetLectureById ¶
func (interactor *LectureInteractor) GetLectureById(id int64) (*dto.GetLectureByIdOutputForm, error)
func (*LectureInteractor) GetLectures ¶
func (interactor *LectureInteractor) GetLectures(limit int, offset int) (dto.GetTotalLecturesOutputForm, error)
func (*LectureInteractor) GetParticipatingLecturesOfAssistant ¶
func (interactor *LectureInteractor) GetParticipatingLecturesOfAssistant(studentID int64, limit int, offset int) (dto.GetTotalLecturesOutputForm, error)
func (*LectureInteractor) GetParticipatingLecturesOfStudent ¶
func (interactor *LectureInteractor) GetParticipatingLecturesOfStudent(studentID int64, limit int, offset int) (dto.GetTotalLecturesOutputForm, error)
func (*LectureInteractor) GetParticipatingLecturesOfTeacher ¶
func (interactor *LectureInteractor) GetParticipatingLecturesOfTeacher(teacherID int64, limit int, offset int) (dto.GetTotalLecturesOutputForm, error)
func (*LectureInteractor) UpdateLecture ¶
func (interactor *LectureInteractor) UpdateLecture(form *dto.UpdateLectureInputForm) (*dto.UpdateLectureOutputForm, error)
type ParticipationInteractor ¶
type ParticipationInteractor struct { ParticipationRepository repository.ParticipationRepository ParticipationOutput port.ParticipationOutput }
func NewParticipationInteractor ¶
func NewParticipationInteractor(repository repository.ParticipationRepository, output port.ParticipationOutput) (*ParticipationInteractor, error)
func (*ParticipationInteractor) CreateAssistantLecture ¶
func (interactor *ParticipationInteractor) CreateAssistantLecture(form *dto.CreateAssistantLectureInputForm) (*dto.CreateAssistantLectureOutputForm, error)
func (*ParticipationInteractor) CreateStudentLecture ¶
func (interactor *ParticipationInteractor) CreateStudentLecture(form *dto.CreateStudentLectureInputForm) (*dto.CreateStudentLectureOutputForm, error)
func (*ParticipationInteractor) CreateTeacherLecture ¶
func (interactor *ParticipationInteractor) CreateTeacherLecture(form *dto.CreateTeacherLectureInputForm) (*dto.CreateTeacherLectureOutputForm, error)
func (*ParticipationInteractor) DeleteAssistantLecture ¶
func (interactor *ParticipationInteractor) DeleteAssistantLecture(studentID int64, lectureID int64) (*dto.DeleteAssistantLectureOutputForm, error)
func (*ParticipationInteractor) DeleteStudentLecture ¶
func (interactor *ParticipationInteractor) DeleteStudentLecture(studentID int64, lectureID int64) (*dto.DeleteStudentLectureOutputForm, error)
func (*ParticipationInteractor) DeleteTeacherLecture ¶
func (interactor *ParticipationInteractor) DeleteTeacherLecture(teacherID int64, lectureID int64) (*dto.DeleteTeacherLectureOutputForm, error)
type TaskInteractor ¶
type TaskInteractor struct { TaskRepository repository.TaskRepository TaskOutput port.TaskOutput }
func NewTaskInteractor ¶
func NewTaskInteractor(repository repository.TaskRepository, output port.TaskOutput) (*TaskInteractor, error)
func (*TaskInteractor) CreateTask ¶
func (interactor *TaskInteractor) CreateTask(form *dto.CreateTaskInputForm) (*dto.CreateTaskOutputForm, error)
func (*TaskInteractor) DeleteTask ¶
func (interactor *TaskInteractor) DeleteTask(id int64, classID int64) (*dto.DeleteTaskOutputForm, error)
func (*TaskInteractor) GetTasksByClassId ¶
func (interactor *TaskInteractor) GetTasksByClassId(classId int64, limit int, offset int) (dto.GetTasksByClassIdOutputForm, error)
func (*TaskInteractor) UpdateTask ¶
func (interactor *TaskInteractor) UpdateTask(form *dto.UpdateTaskInputForm) (*dto.UpdateTaskOutputForm, error)
type UserInteractor ¶
type UserInteractor struct { UserRepository repository.UserRepository UserOutput port.UserOutput }
func NewUserInteractor ¶
func NewUserInteractor(repository repository.UserRepository, output port.UserOutput) (*UserInteractor, error)
func (*UserInteractor) CreateAssistant ¶
func (interactor *UserInteractor) CreateAssistant(form *dto.CreateAssistantInputForm) (*dto.CreateAssistantOutputForm, error)
func (*UserInteractor) CreateStudent ¶
func (interactor *UserInteractor) CreateStudent(form *dto.CreateStudentInputForm) (*dto.CreateStudentOutputForm, error)
func (*UserInteractor) CreateTeacher ¶
func (interactor *UserInteractor) CreateTeacher(form *dto.CreateTeacherInputForm) (*dto.CreateTeacherOutputForm, error)
func (*UserInteractor) GetAssistantById ¶
func (interactor *UserInteractor) GetAssistantById(id int64) (*dto.GetAssistantOutputForm, error)
func (*UserInteractor) GetAssistants ¶
func (interactor *UserInteractor) GetAssistants(limit int, offset int) (dto.GetAssistantsOutputForm, error)
func (*UserInteractor) GetAssistantsByLectureId ¶
func (interactor *UserInteractor) GetAssistantsByLectureId(lectureID int64, limit int, offset int) (dto.GetAssistantsOutputForm, error)
func (*UserInteractor) GetStudentById ¶
func (interactor *UserInteractor) GetStudentById(id int64) (*dto.GetStudentOutputForm, error)
func (*UserInteractor) GetStudents ¶
func (interactor *UserInteractor) GetStudents(limit int, offset int) (dto.GetStudentsOutputForm, error)
func (*UserInteractor) GetStudentsByLectureId ¶
func (interactor *UserInteractor) GetStudentsByLectureId(lectureID int64, limit int, offset int) (dto.GetStudentsOutputForm, error)
func (*UserInteractor) GetTeacherById ¶
func (interactor *UserInteractor) GetTeacherById(id int64) (*dto.GetTeacherOutputForm, error)
func (*UserInteractor) GetTeachers ¶
func (interactor *UserInteractor) GetTeachers(limit int, offset int) (dto.GetTeachersOutputForm, error)
func (*UserInteractor) GetTeachersByLectureId ¶
func (interactor *UserInteractor) GetTeachersByLectureId(lectureID int64, limit int, offset int) (dto.GetTeachersOutputForm, error)
func (*UserInteractor) UpdateAssistant ¶
func (interactor *UserInteractor) UpdateAssistant(form *dto.UpdateAssistantInputForm) (*dto.UpdateAssistantOutputForm, error)
func (*UserInteractor) UpdateStudent ¶
func (interactor *UserInteractor) UpdateStudent(form *dto.UpdateStudentInputForm) (*dto.UpdateStudentOutputForm, error)
func (*UserInteractor) UpdateTeacher ¶
func (interactor *UserInteractor) UpdateTeacher(form *dto.UpdateTeacherInputForm) (*dto.UpdateTeacherOutputForm, error)
Click to show internal directories.
Click to hide internal directories.