add all field to admin panel

This commit is contained in:
2026-05-29 07:38:46 +07:00
parent 26f5760987
commit bed126bd85
9 changed files with 220 additions and 54 deletions
+14
View File
@@ -257,11 +257,25 @@ func (s *Services) GetGraph(ctx context.Context, req *proto.GetGraphReq) (*proto
},
)
}
doors := make([]*proto.GraphDoor, 0, len(node.Doors))
for _, door := range node.Doors {
doors = append(
doors,
&proto.GraphDoor{
Code: door.Code,
Name: door.Name,
Show: door.Show,
},
)
}
nodes = append(nodes, &proto.GraphNode{
Code: node.Code,
Name: node.Name,
Text: node.Text,
Image: node.Image,
Applications: applications,
Hidden: node.Hidden,
Doors: doors,
})
}
edges := make([]*proto.GetGraphRsp_Edge, 0, len(graph.Edges))