feat: add UpdateSiteCookieTool and enhance site operations

- Introduced UpdateSiteCookieTool to the toolset for managing site cookies.
- Updated __all__ exports in init.py and factory.py to include UpdateSiteCookieTool.
- Added async_get method in SiteOper for asynchronous retrieval of individual site records, improving database interaction.
This commit is contained in:
jxxghp
2025-11-18 11:34:37 +08:00
parent 8d1de245a6
commit eae1f8ee4d
4 changed files with 86 additions and 0 deletions

View File

@@ -29,6 +29,12 @@ class SiteOper(DbOper):
"""
return Site.get(self._db, sid)
async def async_get(self, sid: int) -> Site:
"""
异步查询单个站点
"""
return await Site.async_get(self._db, sid)
def list(self) -> List[Site]:
"""
获取站点列表