You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iTi-Flask/iti/applications/service/erp/__init__.py

34 lines
673 B
Python

"""
ERP集成模块
提供ODBC和API两种方式访问ERP系统
"""
from .odbc_manager import erp_odbc, ERPODBCManager, PyODBCConnectionPool
from .api_manager import erp_api, ERPAPIManager
from .exceptions import (
ERPException,
ERPConnectionError,
ERPAuthenticationError,
ERPTimeoutError,
ERPDataError,
)
__all__ = [
'erp_odbc',
'erp_api',
'ERPODBCManager',
'ERPAPIManager',
'PyODBCConnectionPool',
'ERPException',
'ERPConnectionError',
'ERPAuthenticationError',
'ERPTimeoutError',
'ERPDataError',
]
def init_erp(app) -> None:
# 初始化ERP管理器
erp_odbc.init_app(app)
erp_api.init_app(app)