Vastai-ConnectHub/extensions/example/client.py

17 lines
386 B
Python
Raw 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.

from __future__ import annotations
from app.integrations.base import BaseClient
class ExampleClient(BaseClient):
"""
演示用 Client真实业务中应封装 OA/HR/ERP 的 API。
这里不做实际外部请求,仅保留结构与调用方式。
"""
def ping(self) -> dict:
# 真实情况return self.get_json("/ping")
return {"ok": True}