Files
lincodex/backend/internal/port/outbound/support_rubrics.go
T

30 lines
840 B
Go

package outbound
import (
"context"
"github.com/google/uuid"
"lincodex/backend/internal/domain"
)
// SupportCaseRubric pins a manual request to the same grading-policy version
// and reviewed category opening used by automated assessment.
type SupportCaseRubric struct {
Version int32
OpeningID uuid.UUID
PolicyVersionID domain.PolicyVersionID
}
// SupportCaseRubricRepository resolves a rubric for manual assessment cases.
// A case has no task-language field, so implementations match all current
// reviewed catalog bindings for its exact specialization and grade. They
// return nil when no unique current opening matches.
type SupportCaseRubricRepository interface {
ResolveCurrent(
ctx context.Context,
specialization domain.SpecializationCode,
grade domain.GradeCode,
) (*SupportCaseRubric, error)
}