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:
dekun
2026-07-01 14:42:16 +08:00
parent b354d6c701
commit e5a586f903
209 changed files with 21962 additions and 20963 deletions
+19
View File
@@ -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"]