获取全部联系人
需要客户端处理首字母,有必要做一下缓存,每次先加载缓存然后再请求服务器,保证没有网的情况下能看到联系人
- 地址:http://ip..../api/v6.0/get_user_contacts
- 参数:userid
- method: GET
{
"code": 200,
"msg":'',
"data": {
"contact_list": [
{
"alias_name": "",
"department": ["部门1","部门2"],
"email": null,
"employee_id": "124",
"entry_date": null,
"has_ry": true,
"name": "\u4f55\u91d1\u521a",
"phone": "18602242651",
"photo": 3,
"portraitUri": "http://172.26.1.191:8001/static/photo3.png",
"sex": null,
"work_num": "15033",
"work_phone": null
}],
"white_enterprise":true
}
获取单一联系人信息
用于群聊或者单聊点击头像 跳转到用户详情页面
- 地址:http://ip..../api/v6.0/get_contact_info
- method: GET
{
"code": 200,
"data": {
"alias_name": "",
"department": ["部门1","部门2"],
"email": "[email protected]",
"employee_id": "131",
"entry_date": null,
"has_ry": true,
"name": "\u4e8e\u8fde\u6797",
"phone": "13126939916",
"photo": 4,
"portraitUri": "http://dakaapp.troila.com/static/photo4.png",
"sex": 1,
"work_num": "15041",
"work_phone": "86868686"
},
"msg": ""
}
从部门里选群聊
从部门里选择首页接口
- method: GET
- 地址 /api/v6.0/get_add_group_contacts_from_enterprise
{
"code": 200,
"data": [
{
"department_id": "374d218c6e9f444585d4d24e7d172d9e",
"department_name": "Ming",
"member_count": 0
},
{
"department_id": "7b9111812874417da5e2e3a642e091ea",
"department_name": "125",
"member_count": 0
},
{
"department_id": "9be29be8a9fc4fe28530be472141531a",
"department_name": "\u65b0\u8bbe\u8ba1\u90e8",
"member_count": 1
},
{
"department_id": "0",
"department_name": "\u672a\u5206\u7ec4",
"member_count": 215
}
],
"msg": ""
}
从部门里选群聊 第二页界面
- method: GET
- 地址 /api/v6.0/get_add_group_sub_departments
- 参数
- department_id 部门 id
- 返回 json
{ "code": 200, "data": { "employees": [ { "alias_name": "", "department": [ "\u65b0\u8bbe\u8ba1\u90e8" ], "email": "", "employee_id": "88aafba0ab1a4ded944fa94ed16152d0", "entry_date": "2018-06-05", "has_ry": true, "is_leader": true, "name": "\u8001\u5b54", "phone": "18902007660", "photo": 1, "portraitUri": "http://172.26.1.191:8001/static/photo1.png", "sex": null, "user_title": "", "work_num": "", "work_phone": "" } ], "sub_department": [ {"department_id":"123","department_name":"aa","member_count":2} ] }, "msg": "" }