implementations

package
v0.52.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GradesPostgresRepository

type GradesPostgresRepository struct {
	Connection *sql.DB
}

GradesPostgresRepository implementation of the GradesRepository interface

func GetGradesPostgresRepositoryInstance

func GetGradesPostgresRepositoryInstance() *GradesPostgresRepository

GetGradesPostgresRepositoryInstance returns the singleton instance of the GradesPostgresRepository

func (*GradesPostgresRepository) GetStudentGradeInLaboratoryWithRubric

GetStudentGradeInLaboratoryWithRubric returns the grade of an student in a laboratory that was graded with an specific rubric

func (*GradesPostgresRepository) GetStudentsGradesInLaboratory

func (repository *GradesPostgresRepository) GetStudentsGradesInLaboratory(laboratoryUUID, rubricUUID string) ([]*dtos.SummarizedStudentGradeDTO, error)

GetStudentsGradesInLaboratory returns the grades of the students in a laboratory that were graded using the current rubric of the laboratory by the teacher

func (*GradesPostgresRepository) SetCommentToGrade added in v0.52.0

func (repository *GradesPostgresRepository) SetCommentToGrade(dto *dtos.SetCommentToGradeDTO) error

SetCommentToGrade sets a comment to a student's grade

func (*GradesPostgresRepository) SetCriteriaToGrade

func (repository *GradesPostgresRepository) SetCriteriaToGrade(dto *dtos.SetCriteriaToGradeDTO) error

SetCriteriaToGrade sets a criteria to a student's grade

Jump to

Keyboard shortcuts

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