Skip to content

Commit 63bbc47

Browse files
committed
feat: update routing for Python service and add is_deleted field to ModelConfig
1 parent 7710856 commit 63bbc47

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

backend/api-gateway/src/main/java/com/datamate/gateway/ApiGatewayApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {
4242
.uri("http://datamate-backend-python:18000"))
4343

4444
// 知识图谱RAG服务路由
45-
.route("graph-rag", r -> r.path("/api/rag/**")
45+
.route("python-service", r -> r.path("/api/rag/**", "api/models/**")
4646
.uri("http://datamate-backend-python:18000"))
4747

4848
.route("deer-flow-frontend", r -> r.path("/chat/**")

backend/shared/domain-common/src/main/java/com/datamate/common/setting/domain/entity/ModelConfig.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,9 @@ public class ModelConfig extends BaseEntity<String> {
4747
* 是否默认:1-默认,0-非默认
4848
*/
4949
private Boolean isDefault;
50+
51+
/**
52+
* 是否删除:1-已删除,0-未删除
53+
*/
54+
private Boolean isDeleted;
5055
}

scripts/db/setting-management-init.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ CREATE TABLE IF NOT EXISTS t_models
1010
base_url VARCHAR(255) NOT NULL,
1111
api_key VARCHAR(512) DEFAULT '',
1212
type VARCHAR(50) NOT NULL,
13-
is_enabled BOOLEAN DEFAULT TRUE,
14-
is_default BOOLEAN DEFAULT FALSE,
15-
is_deleted BOOLEAN DEFAULT FALSE,
13+
is_enabled BOOLEAN DEFAULT TRUE,
14+
is_default BOOLEAN DEFAULT FALSE,
15+
is_deleted BOOLEAN DEFAULT FALSE,
1616
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
1717
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
1818
created_by VARCHAR(255),

0 commit comments

Comments
 (0)