refactor(backend): Changed folder structure for learning content services.

This commit is contained in:
Gerald Schmittinger 2025-03-04 22:38:21 +01:00
parent 18ee991ce3
commit cc6947dd3c
8 changed files with 13 additions and 13 deletions

View file

@ -0,0 +1,16 @@
import {LearningPath, LearningPathResponse} from "../../interfaces/learning-content";
/**
* Generic interface for a service which provides access to learning paths from a data source.
*/
export interface LearningPathProvider {
/**
* Fetch the learning paths with the given hruids from the data source.
*/
fetchLearningPaths(hruids: string[], language: string, source: string): Promise<LearningPathResponse>;
/**
* Search learning paths in the data source using the given search string.
*/
searchLearningPaths(query: string, language: string): Promise<LearningPath[]>;
}