15 lines
393 B
Go
15 lines
393 B
Go
package course_management
|
|
|
|
import (
|
|
"Yimaru-Backend/internal/domain"
|
|
"context"
|
|
)
|
|
|
|
func (s *Service) GetFullLearningTree(ctx context.Context) ([]domain.TreeCourse, error) {
|
|
return s.courseStore.GetFullLearningTree(ctx)
|
|
}
|
|
|
|
func (s *Service) GetCourseLearningPath(ctx context.Context, courseID int64) (domain.LearningPath, error) {
|
|
return s.courseStore.GetCourseLearningPath(ctx, courseID)
|
|
}
|