ENCOA-311
This commit is contained in:
@@ -9,7 +9,7 @@ from fastapi import UploadFile
|
||||
class IListeningService(ABC):
|
||||
|
||||
@abstractmethod
|
||||
async def generate_listening_dialog( self, section_id: int, topic: str, difficulty: str):
|
||||
async def generate_listening_dialog( self, section_id: int, topic: str, difficulty: List[str]):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
|
||||
@@ -6,7 +6,7 @@ class ISpeakingService(ABC):
|
||||
|
||||
@abstractmethod
|
||||
async def get_speaking_part(
|
||||
self, part: int, topic: str, second_topic: str, difficulty: str
|
||||
self, part: int, topic: str, second_topic: str, difficulty: List[str]
|
||||
) -> Dict:
|
||||
pass
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import Optional
|
||||
from typing import Optional, List
|
||||
|
||||
from fastapi import UploadFile
|
||||
|
||||
@@ -7,11 +7,11 @@ from fastapi import UploadFile
|
||||
class IWritingService(ABC):
|
||||
|
||||
@abstractmethod
|
||||
async def get_writing_task_general_question(self, task: int, topic: str, difficulty: str):
|
||||
async def get_writing_task_general_question(self, task: int, topic: str, difficulty: List[str]):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
async def get_writing_task_academic_question(self, task: int, attachment: UploadFile, difficulty: str):
|
||||
async def get_writing_task_academic_question(self, task: int, attachment: UploadFile, difficulty: List[str]):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user