INNER CODE UNIT · Python

main

lishuangqiang/AI-Meeting · skills/xunzhi-repo-map/scripts/extract_api_index.py:94

def main() -> None:
    rows: list[ApiRow] = []
    for path in find_java_files():
        rows.extend(parse_file(path))
    rows.sort(key=lambda item: (item.module, item.file, item.mapping, item.method))

    lines = [
        "# 接口总览(自动生成)",
        "",
        "该文档用于从代码快速定位控制器、映射前缀和显式鉴权点。若代码已变更,请重新运行 `scripts/extract_api_index.py`。",
        "",
        "| 模块 | 文件 | 控制器 | 映射 | 方法 | 显式鉴权 | 备注 |",
        "| --- | --- | --- | --- | --- | --- | --- |",
    ]
    for row in rows:
        lines.append(
            f"| `{row.module}` | `{row.file}` | `{row.controller}` | `{row.mapping}` | `{row.method}` | {row.auth} | {row.note} |"
        )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…