package handlers import "Rezina-Backend/internal/domain" // These response data schemas describe the public hierarchy, including list keys. type learningPagination struct { TotalCount int64 `json:"total_count"` Limit int `json:"limit"` Offset int `json:"offset"` } type courseListData struct { Courses []domain.ExamPrepCatalogCourse `json:"courses"` learningPagination } type chapterListData struct { Chapters []domain.ExamPrepUnit `json:"chapters"` learningPagination } type lessonListData struct { Lessons []domain.ExamPrepLesson `json:"lessons"` learningPagination } type quizListData struct { Quizzes []domain.ExamPrepPractice `json:"quizzes"` learningPagination } // createChapterQuizRequest intentionally omits parent fields: the URL owns placement. type createChapterQuizRequest struct { QuestionSetID int64 `json:"question_set_id" validate:"required,gt=0" example:"12"` Title *string `json:"title,omitempty" example:"Chapter review"` PublishStatus string `json:"publish_status,omitempty" enums:"DRAFT,PUBLISHED" default:"DRAFT"` } type quizFullData struct { Practice domain.ExamPrepPractice `json:"practice"` QuestionSet questionSetRes `json:"question_set"` StimulusBlocks []domain.PracticeStimulusBlock `json:"stimulus_blocks"` Questions []questionRes `json:"questions"` }