简要描述:
- getList列表
请求URL:
GET/plugin.yun-chat.frontend.h5.chat.get-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page | 否 | int | 页码 |
pagesize | 否 | int | 默认10条 |
user_name | 否 | string | 会员昵称/手机号 |
is_poll | 否 | int | 是否是轮询请求。0-否,1-是,默认0 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"total": 3,
"per_page": 10,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 3,
"data": [{
"id": 1,
"uniacid": 2,
"uid": 2662,
"employee_id": 2,
"last_chat_content": "[订单]",
"last_chat_content_type": 3,
"last_chat_is_backed": 0,
"un_read_num": 13,
"avatar": "http:\/\/localhost:82\/addons\/yun_shop\/static\/images\/photo-mr.jpg",
"nickname": "15000245941",
"hasOneEmployee": {
"id": 2662,
"uniacid": 2,
"uid": 2,
"nickname": "15000245941",
"avatar": "\/addons\/yun_shop\/static\/images\/photo-mr.jpg",
"avatar_image": "http:\/\/localhost:82\/addons\/yun_shop\/static\/images\/photo-mr.jpg",
"username": "15000245941"
}
}]
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
id | int | 会话ID | |
last_chat_content | string | 最近消息内容 | |
un_read_num | int | 未读消息数 | |
avatar | string | 客服头像 | |
nickname | string | 客服昵称 |