student

package
v0.0.0-...-d3349d2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPageNo = 1
View Source
const DefaultPageSize = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type StudentUsecaseAudio

type StudentUsecaseAudio interface {
	FindAudioByID(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, workbookID domain.WorkbookID, problemID domain.ProblemID, audioID domain.AudioID) (service.Audio, error)
}

func NewStudentUsecaseAudio

func NewStudentUsecaseAudio(transaction service.Transaction, pf service.ProcessorFactory, synthesizerClient service.SynthesizerClient, findStudentFunc FindStudentFunc) StudentUsecaseAudio

type StudentUsecaseProblem

type StudentUsecaseProblem interface {
	// problem
	FindProblemsByWorkbookID(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, workbookID domain.WorkbookID, param domain.ProblemSearchCondition) (domain.ProblemSearchResult, error)

	FindAllProblemsByWorkbookID(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, workbookID domain.WorkbookID) (domain.ProblemSearchResult, error)

	FindProblemsByProblemIDs(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, workbookID domain.WorkbookID, param domain.ProblemIDsCondition) (domain.ProblemSearchResult, error)

	FindProblemByID(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, id domain.ProblemSelectParameter1) (domain.ProblemModel, error)

	FindProblemIDs(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, workbookID domain.WorkbookID) ([]domain.ProblemID, error)

	AddProblem(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, param domain.ProblemAddParameter) ([]domain.ProblemID, error)

	UpdateProblem(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, id domain.ProblemSelectParameter2, param domain.ProblemUpdateParameter) error

	UpdateProblemProperty(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, id domain.ProblemSelectParameter2, param domain.ProblemUpdateParameter) error

	RemoveProblem(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, id domain.ProblemSelectParameter2) error

	ImportProblems(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, workbookID domain.WorkbookID, newIterator func(workbookID domain.WorkbookID, problemType domain.ProblemTypeName) (service.ProblemAddParameterIterator, error)) error
}

func NewStudentUsecaseProblem

func NewStudentUsecaseProblem(transaction service.Transaction, pf service.ProcessorFactory, problemMonitor service.ProblemMonitor, findStudentFunc FindStudentFunc) StudentUsecaseProblem

type StudentUsecaseStat

type StudentUsecaseStat interface {
	GetStat(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID) (service.Stat, error)
}

func NewStudentUsecaseStat

func NewStudentUsecaseStat(transaction service.Transaction, pf service.ProcessorFactory,
	findStudentFunc FindStudentFunc) StudentUsecaseStat

type StudentUsecaseStudy

type StudentUsecaseStudy interface {

	// study
	FindResults(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, workbookID domain.WorkbookID, studyType domain.StudyTypeName) ([]domain.StudyRecordWithProblemID, error)

	GetCompletionRate(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, workbookID domain.WorkbookID) (map[domain.StudyTypeName]int, error)

	// FindAllProblemsByWorkbookID(ctx context.Context, organizationID, operatorID, workbookID uint, studyTypeID domain.StudyTypeID) (domain.WorkbookWithProblems, error)
	SetResult(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, workbookID domain.WorkbookID, studyType domain.StudyTypeName, problemID domain.ProblemID, result, mastered bool) error
}

func NewStudentUsecaseStudy

func NewStudentUsecaseStudy(transaction service.Transaction, pf service.ProcessorFactory, studyMonitor service.StudyMonitor, findStudentFunc FindStudentFunc) StudentUsecaseStudy

type StudentUsecaseWorkbook

type StudentUsecaseWorkbook interface {
	FindWorkbooks(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID) (domain.WorkbookSearchResult, error)

	FindWorkbookByID(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, workBookID domain.WorkbookID) (domain.WorkbookModel, error)

	AddWorkbook(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, parameter domain.WorkbookAddParameter) (domain.WorkbookID, error)

	UpdateWorkbook(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, workbookID domain.WorkbookID, version int, parameter domain.WorkbookUpdateParameter) error

	RemoveWorkbook(ctx context.Context, organizationID userD.OrganizationID, operatorID userD.AppUserID, workbookID domain.WorkbookID, version int) error
}

func NewStudentUsecaseWorkbook

func NewStudentUsecaseWorkbook(transaction service.Transaction, pf service.ProcessorFactory, findStudentFunc FindStudentFunc) StudentUsecaseWorkbook

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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