{
  "endpoint": "/api/localization/analyze",
  "method": "POST",
  "description": "国产化率分析：根据BOM条目的制造商来源计算国产化率，提供按品类/价格加权的详细分析报告及国产替代建议。每次分析消耗1积分。",
  "request_body": {
    "api_key": "string (必填) - API密钥，gtk_前缀",
    "items": "array (必填) - BOM条目数组，每项含 id / manufacturer / price / quantity / category"
  },
  "response_fields": {
    "overall_rate": "总体国产化率(%)",
    "by_value": "按价值加权国产化率(%)",
    "by_count": "按数量加权国产化率(%)",
    "domestic_items": "国产件列表",
    "imported_items": "进口件列表",
    "alternatives": "国产替代建议",
    "summary": "分析总结"
  },
  "note": "此端点仅支持POST请求，请使用curl或fetch发送POST请求"
}