definitions

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 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 RubricsRepository

type RubricsRepository interface {
	Save(dto *dtos.CreateRubricDTO) (rubric *entities.Rubric, err error)
	GetByUUID(uuid string) (rubric *entities.Rubric, err error)
	GetAllCreatedByTeacher(teacherUUID string) (rubrics []*dtos.CreatedRubricDTO, err error)

	DoesTeacherOwnRubric(teacherUUID string, rubricUUID string) (bool, error)
	DoesTeacherOwnObjective(teacherUUID string, objectiveUUID string) (bool, error)
	DoesTeacherOwnCriteria(teacherUUID string, criteriaUUID string) (bool, error)

	UpdateName(dto *dtos.UpdateRubricNameDTO) (err error)

	AddObjectiveToRubric(rubricUUID string, objectiveDescription string) (objectiveUUID string, err error)
	UpdateObjective(dto *dtos.UpdateObjectiveDTO) (err error)
	DeleteObjective(objectiveUUID string) (err error)

	AddCriteriaToObjective(dto *dtos.AddCriteriaToObjectiveDTO) (criteriaUUID string, err error)
	UpdateCriteria(dto *dtos.UpdateCriteriaDTO) (err error)
	DeleteCriteria(criteriaUUID string) (err error)
}

Jump to

Keyboard shortcuts

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