fix: 删除误传的多余参数

main
chenzhirong 3 weeks ago
parent eea9687c50
commit 8a2f37bb20

@ -73,8 +73,8 @@ class BaseController:
return datas return datas
async def get_by_id(self, id: str, dto_class: Type[BaseModel] = None): async def get_by_id(self, id: str):
result = await self.service.get_by_id(id,dto_class) result = await self.service.get_by_id(id)
if not result: if not result:
raise AppException(f"不存在 id 为{id}的数据") raise AppException(f"不存在 id 为{id}的数据")
return result return result

Loading…
Cancel
Save