feat(platform): 接入 CLI 命令层和 HTTP 路由层
commands/platform/(新建子目录,对齐 agent/ sealai/):
- list.py → ekb platform list
- workflow_list.py → ekb platform workflow-list <id> [--page] [--page-size]
- workflow_stats.py → ekb platform workflow-stats <id>
- workflow_charge.py → ekb platform workflow-charge
server/platform_router.py(新建,prefix=/platforms):
- GET /platforms
- GET /platforms/{id}/workflows
- GET /platforms/{id}/workflows/stats
- GET /platforms/workflows/charge
server/deps.py:新增 EasoClientDep(EASO Bearer JWT 依赖注入)
commands/help.py:补充 platform 命令组到命令树
ekb_cli/__init__.py:注册 platform_app
server/__init__.py:注册 platform_router
This commit is contained in:
1 parent
474349e7e4
commit
6912c51e43
11 files changed
+265
-4
No files matched your search
@@ -0,0 +1,15 @@
|
||||
"""platform 子命令组:自建应用管理"""
|
||||
|
||||
import typer
|
||||
|
||||
from ekb_cli.commands.platform.list import cmd_list
|
||||
from ekb_cli.commands.platform.workflow_list import cmd_workflow_list
|
||||
from ekb_cli.commands.platform.workflow_stats import cmd_workflow_stats
|
||||
from ekb_cli.commands.platform.workflow_charge import cmd_workflow_charge
|
||||
|
||||
app = typer.Typer(help="自建应用(DataLink Platform)管理")
|
||||
|
||||
app.command("list")(cmd_list)
|
||||
app.command("workflow-list")(cmd_workflow_list)
|
||||
app.command("workflow-stats")(cmd_workflow_stats)
|
||||
app.command("workflow-charge")(cmd_workflow_charge)
|
||||
Reference in new issue
Block a user