fixed: 修复递归获取角色列表数据缺失问题
This commit is contained in:
parent
21237f8be1
commit
a1646bba63
|
@ -224,7 +224,10 @@ func (authorityService *AuthorityService) GetStructAuthorityList(authorityID uin
|
|||
if len(authorities) > 0 {
|
||||
for k := range authorities {
|
||||
list = append(list, authorities[k].AuthorityId)
|
||||
_, err = authorityService.GetStructAuthorityList(authorities[k].AuthorityId)
|
||||
childrenList, err := authorityService.GetStructAuthorityList(authorities[k].AuthorityId)
|
||||
if err == nil {
|
||||
list = append(list, childrenList...)
|
||||
}
|
||||
}
|
||||
}
|
||||
if *auth.ParentId == 0 {
|
||||
|
|
Loading…
Reference in New Issue