feat: linbot

restruct the project
This commit is contained in:
2026-03-10 10:15:22 +08:00
parent 00c76bec37
commit c0edc06ab1
11 changed files with 748 additions and 241 deletions

19
structure.txt Normal file
View File

@@ -0,0 +1,19 @@
app/
├── main.py # include 三個 router
├── config.py # 所有環境變數統一管理
├── db/
│ ├── session.py # engine + SessionLocal
│ └── models.py # 所有 SQLAlchemy model
├── line/
│ ├── router.py # /webhook
│ ├── handlers.py # 訊息進來的入口
│ ├── expense.py # 記帳所有邏輯(原本的 main.py
│ └── captcha_state.py
├── invoice/
│ └── router.py # /invoice/fetch
└── trading/
├── router.py # /trading/check-signals骨架
├── data.py # TODO: 移植行情抓取
├── indicators.py # TODO: 移植指標計算
├── strategy.py # TODO: 移植策略邏輯
└── broker.py # TODO: 永豐 Shioaji