Restructure into modules/ with single-process CTP and config/ layout.
Move business code under modules/, env template to config/, PM2 single qihuo process, and _legacy shims for old imports. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2025-2026 马建军. All rights reserved.
|
||||
|
||||
|
||||
def register(deps) -> None:
|
||||
from modules.trading.install import install_trading
|
||||
|
||||
install_trading(
|
||||
deps.app,
|
||||
login_required=deps.login_required,
|
||||
require_nav=deps.require_nav,
|
||||
get_db=deps.get_db,
|
||||
get_setting=deps.get_setting,
|
||||
set_setting=deps.set_setting,
|
||||
fetch_price=deps.fetch_price,
|
||||
send_wechat_msg=deps.send_wechat_msg,
|
||||
)
|
||||
|
||||
|
||||
__all__ = ["register"]
|
||||
Reference in New Issue
Block a user