简要描述:

  • 客服会话消息列表

请求URL:

GET/plugin.yun-chat.frontend.h5.chat.chats

参数:

参数名 是否必须 类型 说明
page int 页码
~~employee_id~~ ~~是~~ ~~int~~ ~~客服ID~~
queue_id int 会话ID

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "成功",
	"data": {
		"total": 20,
		"per_page": 10,
		"current_page": 1,
		"last_page": 2,
		"next_page_url": "https:\/\/dev1.yunzmall.com\/addons\/yun_shop\/api.php?page=2",
		"prev_page_url": null,
		"from": 1,
		"to": 10,
		"data": [{
			"id": 11,
			"uniacid": 2,
			"uid": 1306,
			"employee_id": 1,
			"content": "欢迎~",
			"content_type": 0,
			"read_status": 1,
			"direction_type": 0,
			"is_system_send": 1,
			"is_system_opt": 0,
			"is_backed": 0,
			"created_at": "2021-02-24 16:05:35",
			"created_at_stamp": "1614153935",
			"updated_at": "2021-02-24 16:05:35",
			"deleted_at": null
		}, {
			"id": 12,
			"uniacid": 2,
			"uid": 1306,
			"employee_id": 1,
			"content": "face[01]",
			"content_type": 0,
			"read_status": 1,
			"direction_type": 1,
			"is_system_send": 0,
			"is_system_opt": 0,
			"is_backed": 0,
			"created_at": "2021-02-24 16:06:26",
			"created_at_stamp": "1614153935",
			"updated_at": "2021-02-24 16:07:10",
			"deleted_at": null
		}]
	}
}

错误时返回:


返回参数说明:

参数名 类型 说明
id int 会话消息ID
uid int 会员ID
employee_id int 客服ID
content string 内容
content_type int 内容类型:0-文本,1-图片,2-商品,3-订单
direction_type int 发送方向:0-客服发送给用户,1-用户发送个客服
is_system_send int 是否为系统发送:0-否,1-是
is_system_opt int 是否为系统操作的消息:0-否,1-是
is_backed int 是否撤回:0-否,1-是
created_at string 消息发送时间
created_at_stamp int 消息发送时间的时间戳