perf: Internationalization of xpack-related APIs

This commit is contained in:
fit2cloud-chenyw
2025-12-15 10:46:39 +08:00
committed by fit2cloud-chenyw
parent 87596aac6a
commit 08cc52c23a
4 changed files with 25 additions and 1 deletions
+8
View File
@@ -62,6 +62,14 @@ tags_metadata = [
"name": "system_assistant",
"description": f"{PLACEHOLDER_PREFIX}system_assistant_api"
},
{
"name": "system_embedded",
"description": f"{PLACEHOLDER_PREFIX}system_embedded_api"
},
{
"name": "system_authentication",
"description": f"{PLACEHOLDER_PREFIX}system_authentication_api"
},
{ "name": "Table Relation",
"description": f"{PLACEHOLDER_PREFIX}tr_api"
},
+8
View File
@@ -101,6 +101,14 @@
"assistant_type": "Assistant Type (0: Basic, 1: Advanced, 4: Page)",
"assistant_configuration": "Configuration",
"assistant_description": "Description",
"system_embedded_api": "Page Embedded API",
"embedded_resetsecret_api": "Reset Secret",
"system_authentication_api": "Authentication Settings API",
"authentication_enable_api": "Enable Authentication",
"authentication_status_api": "Get Authentication Status",
"authentication_validate_api": "Validate Authentication",
"per_api": "Data Permission",
"per_save": "Save Permission",
+8
View File
@@ -102,6 +102,14 @@
"assistant_configuration": "配置",
"assistant_description": "描述",
"system_embedded_api": "页面嵌入式api",
"embedded_resetsecret_api": "重置 Secret",
"system_authentication_api": "认证设置api",
"authentication_enable_api": "设置开启",
"authentication_status_api": "查询状态",
"authentication_validate_api": "校验状态",
"per_api": "数据权限",
"per_save": "保存权限",
"per_delete": "删除权限",
+1 -1
View File
@@ -7,7 +7,7 @@ from apps.system.crud.parameter_manage import get_groups, get_parameter_args, sa
from apps.system.schemas.permission import SqlbotPermission, require_permissions
from common.core.deps import SessionDep
router = APIRouter(tags=["system/parameter"], prefix="/system/parameter")
router = APIRouter(tags=["system/parameter"], prefix="/system/parameter", include_in_schema=False)
@router.get("/login")
async def get_login_args(session: SessionDep) -> list[SysArgModel]: