Documentation ¶
Index ¶
- type GradesPostgresRepository
- func (repository *GradesPostgresRepository) GetStudentGradeInLaboratoryWithRubric(dto *dtos.GetStudentGradeInLaboratoryWithRubricDTO) (*dtos.StudentGradeInLaboratoryWithRubricDTO, error)
- func (repository *GradesPostgresRepository) GetStudentsGradesInLaboratory(laboratoryUUID, rubricUUID string) ([]*dtos.SummarizedStudentGradeDTO, error)
- func (repository *GradesPostgresRepository) SetCommentToGrade(dto *dtos.SetCommentToGradeDTO) error
- func (repository *GradesPostgresRepository) SetCriteriaToGrade(dto *dtos.SetCriteriaToGradeDTO) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GradesPostgresRepository ¶
GradesPostgresRepository implementation of the GradesRepository interface
func GetGradesPostgresRepositoryInstance ¶
func GetGradesPostgresRepositoryInstance() *GradesPostgresRepository
GetGradesPostgresRepositoryInstance returns the singleton instance of the GradesPostgresRepository
func (*GradesPostgresRepository) GetStudentGradeInLaboratoryWithRubric ¶
func (repository *GradesPostgresRepository) GetStudentGradeInLaboratoryWithRubric(dto *dtos.GetStudentGradeInLaboratoryWithRubricDTO) (*dtos.StudentGradeInLaboratoryWithRubricDTO, error)
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
Click to show internal directories.
Click to hide internal directories.