definitions

package
v0.53.5 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LaboratoriesRepository

type LaboratoriesRepository interface {
	GetLaboratoryByUUID(dto *dtos.GetLaboratoryDTO) (laboratory *entities.Laboratory, err error)
	GetLaboratoryInformationByUUID(uuid string) (laboratory *dtos.LaboratoryDetailsDTO, err error)
	SaveLaboratory(dto *dtos.CreateLaboratoryDTO) (laboratory *entities.Laboratory, err error)
	UpdateLaboratory(dto *dtos.UpdateLaboratoryDTO) error

	CreateMarkdownBlock(laboratoryUUID string) (blockUUID string, err error)
	CreateTestBlock(dto *dtos.CreateTestBlockDTO) (blockUUID string, err error)

	GetTotalTestBlocks(laboratoryUUID string) (total int, err error)
	GetStudentsProgress(laboratoryUUID string) (
		progress []*dtos.SummarizedStudentProgressDTO, err error,
	)
	GetStudentSubmissions(laboratoryUUID string, studentUUID string) (
		submissions []*dtos.SummarizedStudentSubmissionDTO, err error,
	)

	DoesTeacherOwnLaboratory(teacherUUID string, laboratoryUUID string) (bool, error)
}

Jump to

Keyboard shortcuts

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