fix
This commit is contained in:
parent
dbf39e3057
commit
681ec8269c
|
@ -34,7 +34,6 @@ func NewGetLdapOrganizationsLogic(ctx context.Context, svcCtx *svc.ServiceContex
|
||||||
// func (l *GetLdapOrganizationsLogic) BeforeLogic(w http.ResponseWriter, r *http.Request) {
|
// func (l *GetLdapOrganizationsLogic) BeforeLogic(w http.ResponseWriter, r *http.Request) {
|
||||||
// }
|
// }
|
||||||
type DNItem struct {
|
type DNItem struct {
|
||||||
Attribute map[string]interface{} `json:"attribute"`
|
|
||||||
MemberCount int `json:"member_count"`
|
MemberCount int `json:"member_count"`
|
||||||
BusinessCategory string `json:"business_category"`
|
BusinessCategory string `json:"business_category"`
|
||||||
OwnerName string `json:"owner_name"`
|
OwnerName string `json:"owner_name"`
|
||||||
|
@ -73,7 +72,6 @@ func (l *GetLdapOrganizationsLogic) GetLdapOrganizations(req *types.Request, r *
|
||||||
ownerDN := ""
|
ownerDN := ""
|
||||||
for _, v := range searchResult.Entries {
|
for _, v := range searchResult.Entries {
|
||||||
sortNum++
|
sortNum++
|
||||||
attribute := make(map[string]interface{})
|
|
||||||
memberCount := 0 //成员数
|
memberCount := 0 //成员数
|
||||||
businessCategory := "" //部门名称
|
businessCategory := "" //部门名称
|
||||||
for _, attr := range v.Attributes {
|
for _, attr := range v.Attributes {
|
||||||
|
@ -99,7 +97,6 @@ func (l *GetLdapOrganizationsLogic) GetLdapOrganizations(req *types.Request, r *
|
||||||
BusinessCategory: businessCategory,
|
BusinessCategory: businessCategory,
|
||||||
Level: level,
|
Level: level,
|
||||||
MemberCount: memberCount,
|
MemberCount: memberCount,
|
||||||
Attribute: attribute,
|
|
||||||
OwnerDN: ownerDN,
|
OwnerDN: ownerDN,
|
||||||
Sort: sortNum,
|
Sort: sortNum,
|
||||||
Child: make([]*DNItem, 0, 100),
|
Child: make([]*DNItem, 0, 100),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user