intra_max_chatbot/external/client.py
2026-03-26 00:25:37 +03:00

26 lines
1 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
Заглушки для интеграции с внешней системой.
TODO: Заменить реализацию после получения API-спецификации.
Все функции синхронные — вызов из async-кода через:
asyncio.create_task(loop.run_in_executor(None, sync_ticket, ticket_id))
"""
import logging
logger = logging.getLogger(__name__)
def sync_ticket(ticket_id: int) -> None:
"""Синхронизировать заявку с внешней системой."""
logger.debug("sync_ticket(%s) — stub, not implemented", ticket_id)
def sync_user(user_id: int) -> None:
"""Синхронизировать пользователя с внешней системой."""
logger.debug("sync_user(%s) — stub, not implemented", user_id)
def sync_org(org_id: int) -> None:
"""Синхронизировать организацию с внешней системой."""
logger.debug("sync_org(%s) — stub, not implemented", org_id)