在前后端开发联调前 的提交20260223

This commit is contained in:
Neo
2026-02-23 23:02:20 +08:00
parent 254ccb1e77
commit fafc95e64c
1142 changed files with 10366960 additions and 36957 deletions

View File

@@ -2,7 +2,7 @@
"""
从源代码和 DDL 中提取 API → ODS → DWD 数据流映射,生成 Markdown 文档。
用法: python scripts/ops/gen_dataflow_doc.py
输出: docs/reports/dataflow_api_ods_dwd.md
输出: $FULL_DATAFLOW_DOC_ROOT/dataflow_api_ods_dwd.md(由 .env 配置)
"""
import re
import ast
@@ -14,7 +14,8 @@ from collections import OrderedDict
ROOT = Path(__file__).resolve().parents[2]
ETL = ROOT / "apps" / "etl" / "pipelines" / "feiqiu"
DB = ROOT / "db" / "etl_feiqiu" / "schemas"
OUT = ROOT / "docs" / "reports" / "dataflow_api_ods_dwd.md"
from _env_paths import get_output_path as _get_path
OUT = _get_path("FULL_DATAFLOW_DOC_ROOT") / "dataflow_api_ods_dwd.md"
# ── 1. 从 DDL 解析表结构 ──────────────────────────────────────────