18 lines
922 B
Go
18 lines
922 B
Go
package ports
|
|
|
|
import (
|
|
"Yimaru-Backend/internal/domain"
|
|
"context"
|
|
)
|
|
|
|
// ExamPrepCatalogCourseStore persists exam_prep.catalog_courses (DET / IELTS / … tracks).
|
|
type ExamPrepCatalogCourseStore interface {
|
|
CreateExamPrepCatalogCourse(ctx context.Context, input domain.CreateExamPrepCatalogCourseInput) (domain.ExamPrepCatalogCourse, error)
|
|
GetExamPrepCatalogCourseByID(ctx context.Context, id int64) (domain.ExamPrepCatalogCourse, error)
|
|
ListExamPrepCatalogCourses(ctx context.Context, limit, offset int32) ([]domain.ExamPrepCatalogCourse, int64, error)
|
|
ListAllExamPrepCatalogCourseIDs(ctx context.Context) ([]int64, error)
|
|
UpdateExamPrepCatalogCourse(ctx context.Context, id int64, input domain.UpdateExamPrepCatalogCourseInput) (domain.ExamPrepCatalogCourse, error)
|
|
DeleteExamPrepCatalogCourse(ctx context.Context, id int64) error
|
|
ReorderExamPrepCatalogCourses(ctx context.Context, orderedIDs []int64) error
|
|
}
|