Files
pricing_review/造价审核/app/server/license_client/__init__.py

11 lines
493 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.
# -*- coding: utf-8 -*-
"""授权平台客户端(license-v2 / lease-v2)。
api_server 只 import license_client.gate 这一个入口:
import license_client.gate as license_gate
license_gate.init(DATA_DIR) # run() 启动时
license_gate.intercept(method, path, body) # do_GET / do_POST 顶部
业务侧判定用 client.can_run_safe()(门禁内部已用,业务代码一般不必再调)。
"""
from .client import LicenseClient, DEFAULT_API_BASE # noqa: F401