fixed: 修复递归获取角色列表数据缺失问题 (#1974)
This commit is contained in:
parent
1743c763d2
commit
afe6b234cf
|
@ -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