RezinaLMS-BackEnd/internal/ports/lms_lesson.go
2026-10-19 17:59:34 +03:00

17 lines
726 B
Go

package ports
import (
"Rezina-Backend/internal/domain"
"context"
)
type LessonStore interface {
CreateLesson(ctx context.Context, moduleID int64, input domain.CreateLessonInput) (domain.Lesson, error)
GetLessonByID(ctx context.Context, id int64) (domain.Lesson, error)
ListLessonsByModuleID(ctx context.Context, moduleID int64, publishedOnly bool, limit, offset int32) ([]domain.Lesson, int64, error)
ListLessonIDsByModule(ctx context.Context, moduleID int64) ([]int64, error)
UpdateLesson(ctx context.Context, id int64, input domain.UpdateLessonInput) (domain.Lesson, error)
DeleteLesson(ctx context.Context, id int64) error
ReorderLessonsInModule(ctx context.Context, moduleID int64, orderedIDs []int64) error
}