Skip to content
2 changes: 1 addition & 1 deletion public/client/dingtalk/dingtalk.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ func GetAllDepts() (ret []map[string]interface{}, err error) {
for _, dept := range depts.Dept {
ele := make(map[string]interface{})
ele["id"] = dept.Id
ele["name_pinyin"] = strings.Join(pinyin.LazyConvert(dept.Name, nil), "")
ele["name"] = dept.Name
ele["parentid"] = dept.ParentId
ele["custom_name_pinyin"] = strings.Join(pinyin.LazyConvert(dept.Name, nil), "")
ret = append(ret, ele)
}
return
Expand Down
2 changes: 1 addition & 1 deletion public/client/feishu/feishu.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func GetAllDepts() (ret []map[string]interface{}, err error) {
for _, dept := range res.Items {
ele := make(map[string]interface{})
ele["name"] = dept.Name
ele["name_pinyin"] = strings.Join(pinyin.LazyConvert(dept.Name, nil), "")
ele["custom_name_pinyin"] = strings.Join(pinyin.LazyConvert(dept.Name, nil), "")
ele["parent_department_id"] = dept.ParentDepartmentID
ele["department_id"] = dept.DepartmentID
ele["open_department_id"] = dept.OpenDepartmentID
Expand Down
2 changes: 1 addition & 1 deletion public/client/wechat/wecom.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func GetAllDepts() (ret []map[string]interface{}, err error) {
for _, dept := range depts.Department {
ele := make(map[string]interface{})
ele["name"] = dept.Name
ele["name_pinyin"] = strings.Join(pinyin.LazyConvert(dept.Name, nil), "")
ele["custom_name_pinyin"] = strings.Join(pinyin.LazyConvert(dept.Name, nil), "")
ele["id"] = dept.ID
ele["name_en"] = dept.NameEn
ele["parentid"] = dept.ParentID
Expand Down