RezinaLMS-BackEnd/internal/domain/exam_prep_assessment.go

23 lines
748 B
Go

package domain
import "time"
// ExamPrepAssessmentParent links an EXAM question set to a node in the exam-prep hierarchy.
type ExamPrepAssessmentParent struct {
Kind string `json:"parent_kind"`
ID int64 `json:"parent_id"`
}
type LinkExamPrepAssessmentInput struct {
QuestionSetID int64 `json:"question_set_id" validate:"required,gt=0"`
ParentKind string `json:"parent_kind" validate:"required,oneof=CATALOG_COURSE UNIT MODULE LESSON"`
ParentID int64 `json:"parent_id" validate:"required,gt=0"`
}
type ExamPrepAssessmentParentLink struct {
QuestionSetID int64 `json:"question_set_id"`
ParentKind string `json:"parent_kind"`
ParentID int64 `json:"parent_id"`
CreatedAt time.Time `json:"created_at"`
}