Feat: 实现知识图谱数据库的检索方法,并对外提供接口

This commit is contained in:
2026-04-13 15:21:54 +08:00
parent 6764095ed1
commit 258e5d21f9
8 changed files with 339 additions and 277 deletions
+11
View File
@@ -0,0 +1,11 @@
package services
import "knowledge-graph-backend/models"
type GraphService interface {
GetGraphData() models.GraphData
GetNodeByID(id string) (models.Node, bool)
SearchNodes(query string) []models.Node
GetNeighbors(nodeID string) (models.NeighborResponse, bool)
GetStats() map[string]int
}