mirror of https://github.com/poanetwork/quorum.git
permissions: updated the getOrgDetails to return suborg list as well
This commit is contained in:
parent
e243b4eef3
commit
115842dbea
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue