feat(platform): 新增自建应用子域 API/Service 层

新增 api/platform/ 子包(对齐 api/sealai/ 结构):
- platform_api: list_platforms(DataLink Platform 列表)
- easo_client: EasoClient + get_easo_client()(EASO Bearer JWT 认证)
- workflow_api: list_workflows / get_workflow_stats / get_workflow_charge
- schemas: Platform / Workflow* 模型(从全局 schemas.py 独立出来)

新增 services/platform/ 子包:
- list_platforms / list_platforms_cmd
- list_workflows / get_workflow_stats / get_workflow_charge 及 _cmd 变体

全局 api/schemas.py 清理 platform/workflow 相关模型,只保留通用结构。
未实现子模块(entity/page/card/variable/log)在各层以 README 预留。
This commit is contained in:
gitea committed 2026-04-16 17:54:35 +08:00
1 parent f7c065f59b
commit 474349e7e4
14 files changed
+644

No files matched your search

+11
View File
@@ -51,6 +51,17 @@ from ekb_cli.services.rule_service import ( # noqa: F401
get_rule_cmd,
create_rule_cmd,
)
from ekb_cli.services.platform import ( # noqa: F401
list_platforms,
list_platforms_cmd,
# 工作流
list_workflows,
get_workflow_stats,
get_workflow_charge,
list_workflows_cmd,
get_workflow_stats_cmd,
get_workflow_charge_cmd,
)
# SealAI 子域服务:通过 services.sealai 子包统一导出,
# commands/server 使用 `from ekb_cli.services.sealai import xxx`