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)
Delete(uuid string) (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)
}
Click to show internal directories.
Click to hide internal directories.