newCloud/scripts/refresh_api_docs.ps1
ylj20011123 f651d3c91b update
2026-02-28 18:56:16 +08:00

19 lines
703 B
PowerShell

# API 映射文档自动化刷新脚本
# 顺序执行:合并 -> 参数注释 -> 接口命名
Write-Host "🚀 开始刷新 API 映射文档..." -ForegroundColor Cyan
# 1. 合并日志数据
Write-Host "`n[1/3] 正在合并运行时日志..." -ForegroundColor Yellow
node scripts/merge_api_data.js
# 2. 添加参数字段中文注释
Write-Host "`n[2/3] 正在添加参数字段注释..." -ForegroundColor Yellow
node scripts/annotate_params.js
# 3. 添加接口中文名称 (Swagger)
Write-Host "`n[3/3] 正在关联接口中文名称..." -ForegroundColor Yellow
node scripts/add_api_names.js
Write-Host "`n✅ 文档刷新完成!请查看 config/api_mapping_merged.md" -ForegroundColor Green