Skip to content

搜索员工会话列表

JSON

GET /o/woa/api/v1/private/search/messages?user_id=1,2&keyword=哈哈&time_from=123&time_to=789

user_id   string      两个用户用,隔开
keyword   string      搜索关键字
time_from int         时间范围,开始时间,纳秒
time_to   int         时间范围,结束时间,纳秒     
dept_id   string      部门id
page      int     必传  第N页
count     int     必传   一页多少条

响应结果

{
    "total": 100, //总共N个会话
    "chats":[
        {
            "user_name": "张三"
            "receiver": "张三的群聊名称", //群聊名或者另外一个用户名
            "chat_id":73560,              //会话id
            "chat_type":2,                //1,单聊,  2群聊    
            "total":1090,                 //总共消息数   
        }
    ]
}