From 3636194a171bcba7d03f97bc3e8ed25c52bb2fad Mon Sep 17 00:00:00 2001 From: jingrow Date: Sat, 25 Oct 2025 01:35:29 +0800 Subject: [PATCH] =?UTF-8?q?api=E6=96=87=E4=BB=B6=E5=A4=B9=E7=A7=BB?= =?UTF-8?q?=E5=88=B0=E5=BA=94=E7=94=A8=E6=A0=B9=E7=9B=AE=E5=BD=95=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4core=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/jingrow/jingrow/{core => }/api/agents.py | 0 apps/jingrow/jingrow/{core => }/api/dev.py | 0 apps/jingrow/jingrow/{core => }/api/embedding.py | 0 apps/jingrow/jingrow/{core => }/api/local_app_installer.py | 0 apps/jingrow/jingrow/{core => }/api/local_jobs.py | 0 apps/jingrow/jingrow/{core => }/api/node_definitions.py | 0 apps/jingrow/jingrow/{core => }/api/nodes.py | 0 apps/jingrow/jingrow/{core => }/api/scheduled_jobs.py | 0 apps/jingrow/jingrow/{core => }/api/scheduler.py | 0 apps/jingrow/jingrow/core/__init__.py | 7 ------- apps/jingrow/jingrow/core/api/__init__.py | 1 - apps/jingrow/jingrow/main.py | 2 +- 12 files changed, 1 insertion(+), 9 deletions(-) rename apps/jingrow/jingrow/{core => }/api/agents.py (100%) rename apps/jingrow/jingrow/{core => }/api/dev.py (100%) rename apps/jingrow/jingrow/{core => }/api/embedding.py (100%) rename apps/jingrow/jingrow/{core => }/api/local_app_installer.py (100%) rename apps/jingrow/jingrow/{core => }/api/local_jobs.py (100%) rename apps/jingrow/jingrow/{core => }/api/node_definitions.py (100%) rename apps/jingrow/jingrow/{core => }/api/nodes.py (100%) rename apps/jingrow/jingrow/{core => }/api/scheduled_jobs.py (100%) rename apps/jingrow/jingrow/{core => }/api/scheduler.py (100%) delete mode 100644 apps/jingrow/jingrow/core/__init__.py delete mode 100644 apps/jingrow/jingrow/core/api/__init__.py diff --git a/apps/jingrow/jingrow/core/api/agents.py b/apps/jingrow/jingrow/api/agents.py similarity index 100% rename from apps/jingrow/jingrow/core/api/agents.py rename to apps/jingrow/jingrow/api/agents.py diff --git a/apps/jingrow/jingrow/core/api/dev.py b/apps/jingrow/jingrow/api/dev.py similarity index 100% rename from apps/jingrow/jingrow/core/api/dev.py rename to apps/jingrow/jingrow/api/dev.py diff --git a/apps/jingrow/jingrow/core/api/embedding.py b/apps/jingrow/jingrow/api/embedding.py similarity index 100% rename from apps/jingrow/jingrow/core/api/embedding.py rename to apps/jingrow/jingrow/api/embedding.py diff --git a/apps/jingrow/jingrow/core/api/local_app_installer.py b/apps/jingrow/jingrow/api/local_app_installer.py similarity index 100% rename from apps/jingrow/jingrow/core/api/local_app_installer.py rename to apps/jingrow/jingrow/api/local_app_installer.py diff --git a/apps/jingrow/jingrow/core/api/local_jobs.py b/apps/jingrow/jingrow/api/local_jobs.py similarity index 100% rename from apps/jingrow/jingrow/core/api/local_jobs.py rename to apps/jingrow/jingrow/api/local_jobs.py diff --git a/apps/jingrow/jingrow/core/api/node_definitions.py b/apps/jingrow/jingrow/api/node_definitions.py similarity index 100% rename from apps/jingrow/jingrow/core/api/node_definitions.py rename to apps/jingrow/jingrow/api/node_definitions.py diff --git a/apps/jingrow/jingrow/core/api/nodes.py b/apps/jingrow/jingrow/api/nodes.py similarity index 100% rename from apps/jingrow/jingrow/core/api/nodes.py rename to apps/jingrow/jingrow/api/nodes.py diff --git a/apps/jingrow/jingrow/core/api/scheduled_jobs.py b/apps/jingrow/jingrow/api/scheduled_jobs.py similarity index 100% rename from apps/jingrow/jingrow/core/api/scheduled_jobs.py rename to apps/jingrow/jingrow/api/scheduled_jobs.py diff --git a/apps/jingrow/jingrow/core/api/scheduler.py b/apps/jingrow/jingrow/api/scheduler.py similarity index 100% rename from apps/jingrow/jingrow/core/api/scheduler.py rename to apps/jingrow/jingrow/api/scheduler.py diff --git a/apps/jingrow/jingrow/core/__init__.py b/apps/jingrow/jingrow/core/__init__.py deleted file mode 100644 index 8f1469c..0000000 --- a/apps/jingrow/jingrow/core/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright (c) 2025, JINGROW and contributors -# For license information, please see license.txt - -""" -Jingrow Local 核心功能 -与 SaaS 版完全一致的核心实现 -""" diff --git a/apps/jingrow/jingrow/core/api/__init__.py b/apps/jingrow/jingrow/core/api/__init__.py deleted file mode 100644 index 1102393..0000000 --- a/apps/jingrow/jingrow/core/api/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# Routes module diff --git a/apps/jingrow/jingrow/main.py b/apps/jingrow/jingrow/main.py index 58dc3b1..23c9f05 100644 --- a/apps/jingrow/jingrow/main.py +++ b/apps/jingrow/jingrow/main.py @@ -59,7 +59,7 @@ def create_app(): ) # 自动注册 Jingrow 框架的静态路由 - include_routers_from_package(app, "jingrow.core.api", prefix="/jingrow") + include_routers_from_package(app, "jingrow.api", prefix="/jingrow") # 手动注册动态路由(最后注册,避免冲突) app.include_router(router, prefix="/jingrow")