Browse Source

更改 sop node列表返回格式

boweniac 9 months ago
parent
commit
4155c8a9e7
1 changed files with 4 additions and 2 deletions
  1. 4 2
      internal/logic/sop_node/get_sop_node_list_logic.go

+ 4 - 2
internal/logic/sop_node/get_sop_node_list_logic.go

@@ -68,8 +68,10 @@ func GetSopNodeListByParentId(parentId uint64, nodeList []*ent.SopNode) ([]*type
 				}
 			}
 			child := types.SopChildNodeInfo{
-				NodeName:       &node.Name,
-				ConditionNodes: childNodeList,
+				NodeName: &node.Name,
+				ChildNode: &types.SopChildNodeInfo{
+					ConditionNodes: childNodeList,
+				},
 				SopNodeInfo: types.SopNodeInfo{
 					BaseIDInfo: types.BaseIDInfo{
 						Id: &node.ID,