简要描述:

-获取员工列表及默认人员消息

请求URL: URL/plugin/WorkSession/getList

请求参数说明:

参数名 类型 是否必需 说明
search[keyword] string 搜索成员

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"staff": [
			{
				"id": 45,
				"user_id": "LanSiTing",
				"name": "蓝思婷",
				"avatar": "http://wework.qpic.cn/bizmail/BTFDs5vJvVVMvDZPbsf4ibjP3lOkBGoYDdK3z6gv8MmibC7hFMsYHBBg/0"
			}
		],
		"private_chat": [
			{
				"id": 31,
				"user_id": "PeiCan",
				"avatar": "https://wework.qpic.cn/bizmail/R6sHN3BlFt9yAH6Ltfq3WH32TvuEwLI82hAtIAw76iaLgQpzgGIEp5Q/0",
				"name": "肖培灿"
			}
		],
		"message_list": [
			{
				"msg_id": "8271991537071824883_1636615311902",
				"action": "send",
				"from": "LanSiTing",
				"content": "加一下",
				"msg_time": 1636615311,
				"msg_type": "text",
				"revoke": 0,
				"revoke_time": null,
				"send_user": {
					"user_id": "LanSiTing",
					"avatar": "http://wework.qpic.cn/bizmail/BTFDs5vJvVVMvDZPbsf4ibjP3lOkBGoYDdK3z6gv8MmibC7hFMsYHBBg/0",
					"name": "蓝思婷"
				}
			},
			{
				"msg_id": "8078021170738386075_1636615321175",
				"action": "send",
				"from": "PeiCan",
				"content": "加了",
				"msg_time": 1636615321,
				"msg_type": "text",
				"revoke": 0,
				"revoke_time": null,
				"send_user": {
					"user_id": "PeiCan",
					"avatar": "https://wework.qpic.cn/bizmail/R6sHN3BlFt9yAH6Ltfq3WH32TvuEwLI82hAtIAw76iaLgQpzgGIEp5Q/0",
					"name": "肖培灿"
				}
			},
			{
				"msg_id": "10605518025742481216_1636615359173",
				"action": "send",
				"from": "PeiCan",
				"content": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/storage/app/public/work_session/image/1/138171a83a2f8f778371badbd183502b.png",
				"msg_time": 1636615359,
				"msg_type": "image",
				"revoke": 0,
				"revoke_time": null,
				"send_user": {
					"user_id": "PeiCan",
					"avatar": "https://wework.qpic.cn/bizmail/R6sHN3BlFt9yAH6Ltfq3WH32TvuEwLI82hAtIAw76iaLgQpzgGIEp5Q/0",
					"name": "肖培灿"
				}
			},
			{
				"msg_id": "10807476963377152904_1636615364110",
				"action": "send",
				"from": "PeiCan",
				"content": "点哪个",
				"msg_time": 1636615363,
				"msg_type": "text",
				"revoke": 0,
				"revoke_time": null,
				"send_user": {
					"user_id": "PeiCan",
					"avatar": "https://wework.qpic.cn/bizmail/R6sHN3BlFt9yAH6Ltfq3WH32TvuEwLI82hAtIAw76iaLgQpzgGIEp5Q/0",
					"name": "肖培灿"
				}
			},
			{
				"msg_id": "9656191628857524683_1636615409257",
				"action": "send",
				"from": "LanSiTing",
				"content": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/storage/app/public/work_session/image/1/b2868597d9b982b1c9252f2775699b99.png",
				"msg_time": 1636615409,
				"msg_type": "image",
				"revoke": 0,
				"revoke_time": null,
				"send_user": {
					"user_id": "LanSiTing",
					"avatar": "http://wework.qpic.cn/bizmail/BTFDs5vJvVVMvDZPbsf4ibjP3lOkBGoYDdK3z6gv8MmibC7hFMsYHBBg/0",
					"name": "蓝思婷"
				}
			},
			{
				"msg_id": "17618212593034298222_1636615433785",
				"action": "send",
				"from": "LanSiTing",
				"content": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/storage/app/public/work_session/image/1/889ea299add9a27ef77a0078188ce08b.png",
				"msg_time": 1636615433,
				"msg_type": "image",
				"revoke": 0,
				"revoke_time": null,
				"send_user": {
					"user_id": "LanSiTing",
					"avatar": "http://wework.qpic.cn/bizmail/BTFDs5vJvVVMvDZPbsf4ibjP3lOkBGoYDdK3z6gv8MmibC7hFMsYHBBg/0",
					"name": "蓝思婷"
				}
			},
			{
				"msg_id": "11407196897471271351_1636615470083",
				"action": "send",
				"from": "PeiCan",
				"content": "然后?",
				"msg_time": 1636615469,
				"msg_type": "text",
				"revoke": 0,
				"revoke_time": null,
				"send_user": {
					"user_id": "PeiCan",
					"avatar": "https://wework.qpic.cn/bizmail/R6sHN3BlFt9yAH6Ltfq3WH32TvuEwLI82hAtIAw76iaLgQpzgGIEp5Q/0",
					"name": "肖培灿"
				}
			},
			{
				"msg_id": "12203335400686928996_1636678579781",
				"action": "send",
				"from": "LanSiTing",
				"content": "哦豁,不好意思,没看到这个企业的消息",
				"msg_time": 1636678579,
				"msg_type": "text",
				"revoke": 0,
				"revoke_time": null,
				"send_user": {
					"user_id": "LanSiTing",
					"avatar": "http://wework.qpic.cn/bizmail/BTFDs5vJvVVMvDZPbsf4ibjP3lOkBGoYDdK3z6gv8MmibC7hFMsYHBBg/0",
					"name": "蓝思婷"
				}
			},
			{
				"msg_id": "8668365324595668465_1636678653358",
				"action": "send",
				"from": "LanSiTing",
				"content": "然后\"客户\"就是可以看到客户的订单、财务、会员信息、标签等信息",
				"msg_time": 1636678653,
				"msg_type": "text",
				"revoke": 0,
				"revoke_time": null,
				"send_user": {
					"user_id": "LanSiTing",
					"avatar": "http://wework.qpic.cn/bizmail/BTFDs5vJvVVMvDZPbsf4ibjP3lOkBGoYDdK3z6gv8MmibC7hFMsYHBBg/0",
					"name": "蓝思婷"
				}
			},
			{
				"msg_id": "11847625580268402503_1636678709089",
				"action": "send",
				"from": "LanSiTing",
				"content": "\"我的\"就是自己的会员中心,跟商城的会员中心一样",
				"msg_time": 1636678708,
				"msg_type": "text",
				"revoke": 0,
				"revoke_time": null,
				"send_user": {
					"user_id": "LanSiTing",
					"avatar": "http://wework.qpic.cn/bizmail/BTFDs5vJvVVMvDZPbsf4ibjP3lOkBGoYDdK3z6gv8MmibC7hFMsYHBBg/0",
					"name": "蓝思婷"
				}
			},
			{
				"msg_id": "7628792308548570158_1636678743523",
				"action": "send",
				"from": "LanSiTing",
				"content": "\"首页\"只显示商城的商品,",
				"msg_time": 1636678743,
				"msg_type": "text",
				"revoke": 0,
				"revoke_time": null,
				"send_user": {
					"user_id": "LanSiTing",
					"avatar": "http://wework.qpic.cn/bizmail/BTFDs5vJvVVMvDZPbsf4ibjP3lOkBGoYDdK3z6gv8MmibC7hFMsYHBBg/0",
					"name": "蓝思婷"
				}
			}
		]
	}
}

staff参数说明:成员列表

参数名 类型 说明
id int 成员ID
user_id string 成员userid
name string 成员名字
avatar string 头像

private_chat参数说明:私聊列表(默认获取第一个成员的内部私聊列表)

参数名 类型 说明
id int 成员ID
user_id string 成员userid
name string 成员名字
avatar string 头像

message_list参数说明:消息列表(默认获取第一个成员的第一个内部私聊的消息列表)

参数名 类型 说明
msg_id string 消息ID
action string 消息动作,目前有send(发送消息)/recall(撤回消息)/switch(切换企业日志)三种类型。String类型
from string 发送者userid
content string/array 消息内容
msg_time_str string 发送时间
msg_type string 消息类型
revoke int 是否已撤回:0否1是
revoke_time_str string 撤回时间
send_user array 发送人信息

错误时返回:

{
    "result": 0,
    "msg": "请登录",
    "data": []
}