From 8a2f37bb208214f883b83d82837b899f21b642eb Mon Sep 17 00:00:00 2001 From: chenzhirong <826531489@qq.com> Date: Mon, 12 Jan 2026 00:38:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E8=AF=AF=E4=BC=A0?= =?UTF-8?q?=E7=9A=84=E5=A4=9A=E4=BD=99=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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