18 lines
406 B
Python
18 lines
406 B
Python
from abc import abstractmethod, ABC
|
|
|
|
from fastapi import BackgroundTasks
|
|
|
|
from ielts_be.dtos.evaluation import EvaluationType
|
|
|
|
class IEvaluationService(ABC):
|
|
|
|
@abstractmethod
|
|
async def begin_evaluation(
|
|
self,
|
|
user_id: str, session_id: str, task: int,
|
|
exercise_id: str, exercise_type: str,
|
|
solution: any,
|
|
background_tasks: BackgroundTasks
|
|
):
|
|
pass
|