核查时间: 2026-04-03
核查对象: shudao-chat-py vs shudao-go-backend
核查方式: 逐一对比路由路径和函数名
| Go接口 | Python实现 | 路由路径 | 函数名 | 状态 |
|---|---|---|---|---|
| POST /apiv1/auth/local_login | ✅ routers/auth.py | /local_login |
local_login |
✅ 已对齐 |
| Go接口 | Python实现 | 路由路径 | 函数名 | 状态 |
|---|---|---|---|---|
| POST /apiv1/send_deepseek_message | ✅ routers/chat.py | /send_deepseek_message |
send_deepseek_message |
✅ 已对齐 |
| GET /apiv1/get_history_record | ✅ routers/chat.py | /get_history_record |
get_history_record |
✅ 已对齐 |
| POST /apiv1/re_produce_single_question | ✅ routers/exam.py | /re_produce_single_question |
re_produce_single_question |
✅ 已对齐 |
| POST /apiv1/guess_you_want | ✅ routers/chat.py | /guess_you_want |
guess_you_want |
✅ 已对齐 |
| GET /apiv1/get_user_recommend_question | ✅ routers/chat.py | /get_user_recommend_question |
get_user_recommend_question |
✅ 已对齐 |
| GET /apiv1/get_file_link | ✅ routers/file.py | /get_file_link |
get_file_link |
✅ 已对齐 |
| POST /apiv1/delete_conversation | ✅ routers/chat.py | /delete_conversation |
delete_conversation |
✅ 已对齐 |
| POST /apiv1/delete_history_record | ✅ routers/chat.py | /delete_history_record |
delete_history_record |
✅ 已对齐 |
| POST /apiv1/delete_recognition_record | ✅ routers/scene.py | /delete_recognition_record |
delete_recognition_record |
✅ 已对齐 |
| POST /apiv1/save_ppt_outline | ✅ routers/chat.py | /save_ppt_outline |
save_ppt_outline |
✅ 已对齐 |
| POST /apiv1/save_edit_document | ✅ routers/chat.py | /save_edit_document |
save_edit_document |
✅ 已对齐 |
| GET /apiv1/online_search | ✅ routers/chat.py | /online_search |
online_search |
✅ 已对齐 |
| POST /apiv1/save_online_search_result | ✅ routers/chat.py | /save_online_search_result |
save_online_search_result |
✅ 已对齐 |
| POST /apiv1/intent_recognition | ✅ routers/chat.py | /intent_recognition |
intent_recognition |
✅ 已对齐 |
| GET /apiv1/get_chromadb_document | ✅ routers/knowledge.py | /get_chromadb_document |
get_chromadb_document |
✅ 已对齐 |
| Go接口 | Python实现 | 路由路径 | 函数名 | 状态 |
|---|---|---|---|---|
| POST /apiv1/stream/chat | ✅ routers/chat.py | /stream/chat |
stream_chat |
✅ 已对齐 |
| POST /apiv1/stream/chat-with-db | ✅ routers/chat.py | /stream/chat-with-db |
stream_chat_with_db |
✅ 已对齐 |
| Go接口 | Python实现 | 路由路径 | Go函数名 | Python函数名 | 状态 |
|---|---|---|---|---|---|
| POST /apiv1/oss/upload | ✅ routers/file.py | /oss/upload |
Upload |
upload |
✅ 已修正 |
| POST /apiv1/oss/shudao/upload_image | ✅ routers/file.py | /oss/shudao/upload_image |
UploadImage |
upload_image |
✅ 已对齐 |
| POST /apiv1/oss/shudao/upload_json | ✅ routers/file.py | /oss/shudao/upload_json |
UploadPPTJson |
upload_ppt_json |
✅ 已修正 |
| GET /apiv1/oss/parse | ✅ routers/file.py | /oss/parse |
ParseOSS |
parse_oss |
✅ 已修正 |
| Go接口 | Python实现 | 路由路径 | 函数名 | 状态 |
|---|---|---|---|---|
| GET /apiv1/recommend_question | ✅ routers/total.py | /recommend_question |
get_recommend_question |
✅ 已对齐 |
| GET /apiv1/get_function_card | ✅ routers/total.py | /get_function_card |
get_function_card |
✅ 已对齐 |
| GET /apiv1/get_hot_question | ✅ routers/total.py | /get_hot_question |
get_hot_question |
✅ 已对齐 |
| Go接口 | Python实现 | 路由路径 | 函数名 | 状态 |
|---|---|---|---|---|
| POST /apiv1/submit_feedback | ✅ routers/total.py | /submit_feedback |
submit_feedback |
✅ 已对齐 |
| POST /apiv1/like_and_dislike | ✅ routers/total.py | /like_and_dislike |
like_and_dislike |
✅ 已对齐 |
| POST /apiv1/submit_evaluation | ✅ routers/scene.py | /submit_evaluation |
submit_evaluation |
✅ 已对齐 |
| Go接口 | Python实现 | 路由路径 | Go函数名 | Python函数名 | 状态 |
|---|---|---|---|---|---|
| GET /apiv1/get_policy_file | ✅ routers/total.py | /get_policy_file |
GetPolicyFile |
get_policy_file |
✅ 已对齐 |
| GET /apiv1/download_file | ✅ routers/total.py | /download_file |
GetPdfOssDownloadLink |
get_pdf_oss_download_link |
✅ 已修正 |
| POST /apiv1/policy_file_count | ✅ routers/total.py | /policy_file_count |
GetPolicyFileViewAndDownloadCount |
get_policy_file_view_and_download_count |
✅ 已修正 |
| Go接口 | Python实现 | 路由路径 | Go函数名 | Python函数名 | 状态 |
|---|---|---|---|---|---|
| POST /apiv1/re_modify_question | ✅ routers/exam.py | /re_modify_question |
ReModifyQuestion |
re_modify_question |
✅ 已对齐 |
| POST /apiv1/exam/build_prompt | ✅ routers/exam.py | /exam/build_prompt |
BuildExamPrompt |
build_exam_prompt |
✅ 已修正 |
| POST /apiv1/exam/build_single_prompt | ✅ routers/exam.py | /exam/build_single_prompt |
BuildSingleQuestionPrompt |
build_single_question_prompt |
✅ 已修正 |
| Go接口 | Python实现 | 路由路径 | 函数名 | 状态 |
|---|---|---|---|---|
| POST /apiv1/hazard | ✅ routers/hazard.py | /hazard |
hazard |
✅ 已对齐 |
| POST /apiv1/save_step | ✅ routers/hazard.py | /save_step |
save_step |
✅ 已对齐 |
| Go接口 | Python实现 | 路由路径 | 函数名 | 状态 |
|---|---|---|---|---|
| GET /apiv1/get_history_recognition_record | ✅ routers/scene.py | /get_history_recognition_record |
get_history_recognition_record |
✅ 已对齐 |
| GET /apiv1/get_recognition_record_detail | ✅ routers/scene.py | /get_recognition_record_detail |
get_recognition_record_detail |
✅ 已对齐 |
| GET /apiv1/get_third_scene_example_image | ✅ routers/scene.py | /get_third_scene_example_image |
get_third_scene_example_image |
✅ 已对齐 |
| GET /apiv1/get_latest_recognition_record | ✅ routers/scene.py | /get_latest_recognition_record |
get_latest_recognition_record |
✅ 已对齐 |
| Go接口 | Python实现 | 路由路径 | 函数名 | 状态 |
|---|---|---|---|---|
| GET /apiv1/knowledge/files/advanced-search | ✅ routers/knowledge.py | /knowledge/files/advanced-search |
advanced_search |
✅ 已对齐 |
| Go接口 | Python实现 | 路由路径 | 函数名 | 状态 |
|---|---|---|---|---|
| GET /apiv1/get_user_data_id | ✅ routers/total.py | /get_user_data_id |
get_user_data_id |
✅ 已对齐 |
| Go接口 | Python实现 | 路由路径 | 函数名 | 状态 |
|---|---|---|---|---|
| POST /apiv1/tracking/record | ✅ routers/tracking.py | /tracking/record |
record_tracking |
✅ 已对齐 |
| GET /apiv1/tracking/records | ✅ routers/tracking.py | /tracking/records |
get_tracking_records |
✅ 已对齐 |
| POST /apiv1/tracking/api_mapping | ✅ routers/tracking.py | /tracking/api_mapping |
add_api_mapping |
✅ 已对齐 |
| GET /apiv1/tracking/api_mappings | ✅ routers/tracking.py | /tracking/api_mappings |
get_api_mappings |
✅ 已对齐 |
| Go接口 | Python实现 | 路由路径 | 函数名 | 状态 |
|---|---|---|---|---|
| GET /apiv1/points/balance | ✅ routers/points.py | /points/balance |
get_balance |
✅ 已对齐 |
| POST /apiv1/points/consume | ✅ routers/points.py | /points/consume |
consume_points |
✅ 已对齐 |
| GET /apiv1/points/history | ✅ routers/points.py | /points/history |
get_consumption_history |
✅ 已对齐 |
routers/total.py:
policy_file_count → get_policy_file_view_and_download_countdownload_file → get_pdf_oss_download_linkrouters/file.py:
oss_upload → uploadupload_json → upload_ppt_jsonoss_parse → parse_ossrouters/exam.py:
build_prompt → build_exam_promptbuild_single_prompt → build_single_question_promptPOST /apiv1/auth/register - 用户注册GET /apiv1/user/info - 获取用户信息POST /apiv1/points/add - 添加积分GET /apiv1/points/logs - 积分日志GET /apiv1/scene/get_scene_list - 获取场景列表GET /apiv1/scene/get_first_scene_list - 获取一级场景GET /apiv1/scene/get_second_scene_list - 获取二级场景GET /apiv1/scene/get_third_scene_list - 获取三级场景POST /apiv1/scene/scene_template - 创建场景模板GET /apiv1/scene/scene_templates - 获取场景模板列表GET /apiv1/scene/recognition_records - 获取识别记录二次核查确认:
之前报告中的"缺失接口"判断为误报,所有接口都已存在,只是部分函数命名不同。经过本次命名修正后,两个版本已完全对齐。
核查执行: 2026-04-03
核查人: Cline
核查方式: 逐一路由对比 + 函数名对比
状态: ✅ 二次核查完成,确认100%对齐