feat: 增加工具调用

This commit is contained in:
2026-04-20 15:16:51 +08:00
parent b3e4ec4f4c
commit fe87f5ca80
2 changed files with 312 additions and 1 deletions
+1 -1
View File
@@ -540,7 +540,7 @@ func (s *Neo4jService) UpdateNode(id string, req model.UpdateNodeRequest) (model
query := `MATCH (n {id: $id})`
// 处理自定义属性(不管是否有标准字段更新)
if req.Properties != nil && len(req.Properties) > 0 {
if len(req.Properties) > 0 {
for key, value := range req.Properties {
// 跳过系统属性,避免冲突
if key != "id" && key != "label" && key != "type" && key != "x" && key != "y" {