diff --git a/backend/apps/datasource/api/datasource.py b/backend/apps/datasource/api/datasource.py index 084d76470..1d7612ea3 100644 --- a/backend/apps/datasource/api/datasource.py +++ b/backend/apps/datasource/api/datasource.py @@ -372,7 +372,7 @@ def insert_pg(df, tableName, engine): f_c_col = "字段备注" -@router.get("/exportDsSchema/{id}") +@router.get("/exportDsSchema/{id}", response_model=None, summary=f"{PLACEHOLDER_PREFIX}ds_export_ds_schema") async def export_ds_schema(session: SessionDep, id: int = Path(..., description=f"{PLACEHOLDER_PREFIX}ds_id")): # { # 'sheet':'', sheet name @@ -438,7 +438,7 @@ def inner(): ) -@router.post("/uploadDsSchema/{id}") +@router.post("/uploadDsSchema/{id}", response_model=None, summary=f"{PLACEHOLDER_PREFIX}ds_upload_ds_schema") async def upload_ds_schema(session: SessionDep, id: int = Path(..., description=f"{PLACEHOLDER_PREFIX}ds_id"), file: UploadFile = File(...)): ALLOWED_EXTENSIONS = {"xlsx", "xls"} diff --git a/backend/apps/swagger/i18n.py b/backend/apps/swagger/i18n.py index 424038dc6..87df681e1 100644 --- a/backend/apps/swagger/i18n.py +++ b/backend/apps/swagger/i18n.py @@ -93,7 +93,10 @@ def load_translation(lang: str) -> Dict[str, str]: "name": "CustomPrompt", "description": f"{PLACEHOLDER_PREFIX}custom_prompt_api" }, - + { + "name": "mcp", + "description": f"{PLACEHOLDER_PREFIX}mcp_api" + }, ] diff --git a/backend/apps/swagger/locales/en.json b/backend/apps/swagger/locales/en.json index b38b94e87..55413c524 100644 --- a/backend/apps/swagger/locales/en.json +++ b/backend/apps/swagger/locales/en.json @@ -22,6 +22,10 @@ "ds_preview_data": "Preview Data", "ds_upload_excel": "Upload Excel", "ds_excel": "File", + "ds_export_ds_schema": "Export Comment", + "ds_upload_ds_schema": "Upload Comment", + + "mcp_api": "MCP Tools(It is not recommended to call via API)", "system": "System Management", "system_user_api": "User APIs", diff --git a/backend/apps/swagger/locales/zh.json b/backend/apps/swagger/locales/zh.json index 39cb01b21..42e16913e 100644 --- a/backend/apps/swagger/locales/zh.json +++ b/backend/apps/swagger/locales/zh.json @@ -22,6 +22,10 @@ "ds_preview_data": "预览数据", "ds_upload_excel": "上传Excel", "ds_excel": "文件", + "ds_export_ds_schema": "导出备注信息", + "ds_upload_ds_schema": "导入备注信息", + + "mcp_api": "MCP Tools(不建议api方式调用)", "system": "系统管理", "system_user_api": "用户接口",