permissions: updated the getOrgDetails to return suborg list as well

This commit is contained in:
vsmk98 2019-04-10 21:38:44 +08:00
parent e243b4eef3
commit 115842dbea
2 changed files with 5 additions and 4 deletions

View File

@ -192,7 +192,7 @@ func (s *QuorumControlsAPI) GetOrgDetails(orgId string) types.OrgDetailInfo {
nodeList = append(nodeList, a)
}
}
return types.OrgDetailInfo{NodeList: nodeList, RoleList: roleList, AcctList: acctList}
return types.OrgDetailInfo{NodeList: nodeList, RoleList: roleList, AcctList: acctList, SubOrgList: types.OrgInfoMap.GetOrg(orgId).SubOrgList}
}
func (s *QuorumControlsAPI) AddOrg(orgId string, url string, acct common.Address, txa ethapi.SendTxArgs) ExecStatus {

View File

@ -77,9 +77,10 @@ type AccountInfo struct {
}
type OrgDetailInfo struct {
NodeList []NodeInfo
RoleList []RoleInfo
AcctList []AccountInfo
NodeList []NodeInfo
RoleList []RoleInfo
AcctList []AccountInfo
SubOrgList []string
}
type OrgStruct struct {