MCPcopy
hub / github.com/zai-org/GLM-OCR / get

Method get

apps/backend/app/repository/base.py:28–32  ·  view source on GitHub ↗

根据ID获取记录

(self, id: int)

Source from the content-addressed store, hash-verified

26 return db_obj
27
28 async def get(self, id: int) -> Optional[ModelType]:
29 """根据ID获取记录"""
30 stmt = select(self.model).where(self.model.id == id)
31 result = await self.session.execute(stmt)
32 return result.scalar_one_or_none()
33
34 async def get_by_field(self, field_name: str, value: Any) -> Optional[ModelType]:
35 """根据字段值获取记录"""

Callers 15

stopPollingFunction · 0.45
get_request_idMethod · 0.45
extract_request_idFunction · 0.45
convertMethod · 0.45
convertMethod · 0.45
create_taskMethod · 0.45
get_task_statusFunction · 0.45
_collect_env_overridesFunction · 0.45
_deep_mergeFunction · 0.45
from_envMethod · 0.45
processMethod · 0.45

Calls

no outgoing calls