Przeglądaj źródła

更改 sop node列表返回格式

boweniac 9 miesięcy temu
rodzic
commit
4155c8a9e7

+ 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,