简要描述:
- 客服历史会话列表
请求URL:
GET/plugin.yun-chat.frontend.chat.history-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page | 否 | int | 页码 |
pagesize | 否 | int | 默认10条 |
user_name | 否 | string | 会员昵称/手机号 |
返回示例:
正确时返回:
{
"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": 4,
"uniacid": 2,
"uid": 2669,
"employee_id": 2,
"last_updated_at": "",
"has_one_employee": {
"id": 2,
"uid": 2669,
"uniacid": 2,
"nickname": "客服0002",
"avatar": "https:\/\/localhost:82\/attachment\/images\/2\/2019\/09\/b771aSob37tASStS8k7TSFfRo8fcKZ.jpg"
},
"has_one_user": {
"uid": 2669,
"uniacid": 2,
"nickname": "15000000002",
"avatar": "\/addons\/yun_shop\/static\/images\/photo-mr.jpg",
"mobile": "15000000002",
"avatar_image": "http:\/\/localhost:82\/addons\/yun_shop\/static\/images\/photo-mr.jpg",
"username": "15000000002"
}
}, {
"id": 3,
"uniacid": 2,
"uid": 2665,
"employee_id": 2,
"last_updated_at": "2021-02-14 10:56:07",
"has_one_employee": {
"id": 2,
"uid": 2669,
"uniacid": 2,
"nickname": "客服0002",
"avatar": "https:\/\/localhost:82\/attachment\/images\/2\/2019\/09\/b771aSob37tASStS8k7TSFfRo8fcKZ.jpg"
},
"has_one_user": {
"uid": 2665,
"uniacid": 2,
"nickname": "15000000003",
"avatar": "\/addons\/yun_shop\/static\/images\/photo-mr.jpg",
"mobile": "18516690005",
"avatar_image": "http:\/\/localhost:82\/addons\/yun_shop\/static\/images\/photo-mr.jpg",
"username": "15000000003"
}
}, {
"id": 1,
"uniacid": 2,
"uid": 2662,
"employee_id": 2,
"last_updated_at": "2021-02-24 15:11:34",
"has_one_employee": {
"id": 2,
"uid": 2669,
"uniacid": 2,
"nickname": "客服0002",
"avatar": "https:\/\/localhost:82\/attachment\/images\/2\/2019\/09\/b771aSob37tASStS8k7TSFfRo8fcKZ.jpg"
},
"has_one_user": {
"uid": 2662,
"uniacid": 2,
"nickname": "15000245941",
"avatar": "\/addons\/yun_shop\/static\/images\/photo-mr.jpg",
"mobile": "15000245941",
"avatar_image": "http:\/\/localhost:82\/addons\/yun_shop\/static\/images\/photo-mr.jpg",
"username": "15000245941"
}
}]
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
id | int | 会话ID | |
last_updated_at | string | 最近会话时间 | |
has_one_employee | obj | 客服信息 | |
has_one_user | obj | 会员信息 |