|
@@ -88,8 +88,8 @@ func DeleteSysGroupByIds(ids []int) (err error) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
-// BuildGroupTree 构建分组树
|
|
|
|
-func BuildGroupTree(groups []*system.SysFullGroup, groupAdmins map[int][]*system.DepartmentUserTree) map[int][]*system.DepartmentUserTree {
|
|
|
|
|
|
+// BuildGroupTreeV2 构建分组树
|
|
|
|
+func BuildGroupTreeV2(groups []*system.SysFullGroup, groupAdmins map[int][]*system.DepartmentUserTree) map[int][]*system.DepartmentUserTree {
|
|
// 创建分组ID到节点的映射
|
|
// 创建分组ID到节点的映射
|
|
groupMap := make(map[int]*system.DepartmentUserTree)
|
|
groupMap := make(map[int]*system.DepartmentUserTree)
|
|
idList := make([]int, 0, len(groups))
|
|
idList := make([]int, 0, len(groups))
|