Skip to content

根据姓名搜索员工

SQL

GET /o/woa/api/v1/private/search/contacts?name=艾泽林&offset=0

name    string  搜索关键字
offset  int     分页偏移量
corp_id int     企业id, 测试企业 667582384 (新增参数)

JSON

{
    "contacts":{
        "list":[
            {
                "id":191252049,   //用户id 
                "highlight":{     //搜索结果高亮   
                    "user_name":[
                        "<em>艾</em><em>泽</em><em>林</em>"
                    ]
                },
                "name":"艾泽林",   //用户姓名
                "status": "active"//用户在职状态
            }
        ],
        "total":1,                //总结果数
        "next_offset":1,          //下一页偏移量  
        "has_next":false          //是否还有还一页  
    }
}