For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/sapi/service/functions/getServiceClient.md.
  • 简体中文
  • Function: getServiceClient()

    function getServiceClient(moduleId: string): ServiceClient;

    Defined in: sapi/service/client.ts:231

    按 moduleId 取出已登记的作用域 service 客户端。

    Parameters

    ParameterType
    moduleIdstring

    Returns

    ServiceClient