diff --git a/router/__init__.py b/router/__init__.py index 3d7a81b..9ad721d 100644 --- a/router/__init__.py +++ b/router/__init__.py @@ -73,8 +73,8 @@ class BaseController: return datas - async def get_by_id(self, id: str, dto_class: Type[BaseModel] = None): - result = await self.service.get_by_id(id,dto_class) + async def get_by_id(self, id: str): + result = await self.service.get_by_id(id) if not result: raise AppException(f"不存在 id 为{id}的数据") return result