简要描述:

  • 管理企业 必须请求该接口再进入相应的企业管理页面。

请求域名:

  • http://xx.com

请求URL:

xx.com/business/{公众号}/plugin/WechatCustomers/getList

参数:

参数名 是否必须 类型 说明
search[customer] string 客户信息
search[member] string 系统会员ID
search[add_way_type] int 来源
search[tags_data] string 标签
search[employee_member] string 归属成员
search[类型] int 类型
search[status] int 状态
search[time] arr 添加时间(timestamp)
search[remark] string 备注搜索
page int 分页

返回示例:

正确时返回:

{
	result: 1,
	msg: "ok",
	data: {
		current_page: 1,
		data: [{
				id: 63,
				uniacid: 2,
				crop_id: 1,
				uid: 0,
				userid: "XiaoLiangZi",
				external_userid: "woDesSDgAAShvEE1Odl6hiE8TPbaybhw",
				remark: "李宝佳",
				description: "",
				customer_create_time: 1631950639,
				remark_corp_name: "",
				remark_mobiles: "[]",
				oper_userid: "woDesSDgAAShvEE1Odl6hiE8TPbaybhw",
				tag_id: "",
				createtime: 1631950639,
				add_way: "1",
				state: "",
				status: 1,
				created_at: "2021-09-28 09:21:46",
				updated_at: null,
				deleted_at: null,
				tag_name: "",
				has_one_customer: {
					id: 37,
					uniacid: 2,
					crop_id: 1,
					uid: 0,
					external_userid: "woDesSDgAAShvEE1Odl6hiE8TPbaybhw",
					name: "李一天",
					avatar: "http://wework.qpic.cn/wwhead/nMl9ssowtibVGyrmvBiaibzDrzltpHO18fPs34Qu2plSGib52cRusl235ibiarTTgyXDwr4Mbmwc3Lsics/0",
					external_type: 2,
					gender: 1,
					unionid: "",
					position: "",
					corp_name: "芸众",
					corp_full_name: "广州市芸众信息科技有限公司",
					external_profile: "null",
					is_member: 0,
					created_at: "2021-09-28 09:21:46",
					updated_at: null,
					deleted_at: null
				},
				has_one_employee: {
					id: 12,
					uniacid: 2,
					business_id: 1,
					uid: 0,
					user_id: "XiaoLiangZi",
					name: "李健平",
					mobile: "13547567468",
					position: "",
					gender: 1,
					telephone: "",
					email: "",
					avatar: "https://wework.qpic.cn/bizmail/g2TmcaCFx5yE5F5dufa9zyshU9v6fYIHziasdVlEof4PzDwe4VvKaxw/0",
					alias: "",
					status: 1,
					qr_code: "https://open.work.weixin.qq.com/wwopen/userQRCode?vcode=vc060e73b159d87d1d",
					address: "",
					open_userid: "1_XiaoLiangZi",
					main_department: "1",
					updated_at: "2021-09-24 16:31:09",
					created_at: "2021-09-24 16:31:09",
					deleted_at: null,
					right_type: 0,
					disabled: 0
				}
			},
			{
				id: 62,
				uniacid: 2,
				crop_id: 1,
				uid: 0,
				userid: "XiaoLiangZi",
				external_userid: "wmDesSDgAAG17vSqReXF2Z5NoJs9yGgg",
				remark: "Abe",
				description: "",
				customer_create_time: 1632277573,
				remark_corp_name: "",
				remark_mobiles: "[]",
				oper_userid: "XiaoLiangZi",
				tag_id: "etDesSDgAACFJtKmZ8DmxP3DjZmceyLw,etDesSDgAAB6_PNgMEt6fWHVVJhceQow",
				createtime: 1632277573,
				add_way: "1",
				state: "",
				status: 1,
				created_at: "2021-09-28 09:21:46",
				updated_at: null,
				deleted_at: null,
				tag_name: "开发测试标签组1标签1,测试标签11",
				has_one_customer: {
					id: 20,
					uniacid: 2,
					crop_id: 1,
					uid: 3061,
					external_userid: "wmDesSDgAAG17vSqReXF2Z5NoJs9yGgg",
					name: "Abe",
					avatar: "http://wx.qlogo.cn/mmhead/ZqDaDiccbgkgPt3oAibwdVF9iayeDB61or1vTbven6xy5siatWCXH0NDJA/0",
					external_type: 1,
					gender: 2,
					unionid: "otAGn0opBEvlppt6dH3oplwFC9aY",
					position: "",
					corp_name: "",
					corp_full_name: "",
					external_profile: "null",
					is_member: 1,
					created_at: "2021-08-23 18:24:42",
					updated_at: "2021-08-23 18:40:42",
					deleted_at: null
				},
				has_one_employee: {
					id: 12,
					uniacid: 2,
					business_id: 1,
					uid: 0,
					user_id: "XiaoLiangZi",
					name: "李健平",
					mobile: "13547567468",
					position: "",
					gender: 1,
					telephone: "",
					email: "",
					avatar: "https://wework.qpic.cn/bizmail/g2TmcaCFx5yE5F5dufa9zyshU9v6fYIHziasdVlEof4PzDwe4VvKaxw/0",
					alias: "",
					status: 1,
					qr_code: "https://open.work.weixin.qq.com/wwopen/userQRCode?vcode=vc060e73b159d87d1d",
					address: "",
					open_userid: "1_XiaoLiangZi",
					main_department: "1",
					updated_at: "2021-09-24 16:31:09",
					created_at: "2021-09-24 16:31:09",
					deleted_at: null,
					right_type: 0,
					disabled: 0
				}
			}
		],
		first_page_url: "http://www.wq.com/web/index.php?page=1",
		from: 1,
		last_page: 23,
		last_page_url: "http://www.wq.com/web/index.php?page=23",
		next_page_url: "http://www.wq.com/web/index.php?page=2",
		path: "http://www.wq.com/web/index.php",
		per_page: 2,
		prev_page_url: null,
		to: 2,
		total: 45,
		count: 45,
		tag: [{
				id: 27,
				uniacid: 2,
				crop_id: 1,
				tag_id: "etDesSDgAAB6_PNgMEt6fWHVVJhceQow",
				name: "开发测试标签组1标签1",
				create_time: 1615434976,
				order: 0,
				created_at: "2021-08-24 16:13:28",
				updated_at: "2021-08-24 16:13:28",
				deleted_at: null,
				group_id: "etDesSDgAAkqdytUBUMtc_fsnHRnEZ6w",
				group_name: "开发测试标签组1"
			},
			{
				id: 26,
				uniacid: 2,
				crop_id: 1,
				tag_id: "etDesSDgAAYoJscGWjVDukf38n7PJIOg",
				name: "测试标签1-2",
				create_time: 1616825466,
				order: 0,
				created_at: "2021-08-24 16:13:28",
				updated_at: "2021-08-24 16:13:28",
				deleted_at: null,
				group_id: "etDesSDgAAgSPK4ZV9R6whR-HznwfJGw",
				group_name: "测试标签组1"
			}
		],
		employee: [{
				user_id: "SunXinJian",
				name: "孙新建"
			},
			{
				user_id: "WeiPing",
				name: "韦平"
			},
		]
	}
}

错误时返回:

{
    "result": 0,
    "msg": "无权管理该企业",
    "data": []
}

返回参数说明:

参数名 类型 说明
名称 类型 说明
data[crop_id] int 企业id
data[userid] string 成员userid
data[external_userid] string 外部联系人userid
data[remark] string 备注
data[description] string 成员给外部联系人的备注
data[customer_create_time] int 成员客户时间
data[remark_corp_name] string 备注公司名称
data[remark_mobiles] string 备注手机号
data[oper_userid] string 添加者的userid
data[tag_id] string 标签id
data[createtime] int 创建时间
data[add_way] int 添加类型:0: '未知来源' 1: '扫描二维码' 2: '搜索手机号' 3 : '名片分享' 4 : '群聊' 5 : '手机通讯录' 6 : '微信联系人' 7 : '来自微信的添加好友申请' 8 : '安装第三方应用时自动添加的客服人员' 9 : '搜索邮箱' 201 : '内部成员共享' 202 '管理员/负责人分配'
                       |

|data[state] |int| 状态(暂时没用) | |data[status] |int| 好友状态:态: 1 正常 -1 已流失 | |data[created_at] |int| 同步系统时间间 | |data[tag_name] |string| 标签名称称 | |data[has_one_customer] [crop_id] |int| 企业id业id | |data[has_one_customer][uid] |int| 系统会员id员id | |data[has_one_customer][external_userid] |string| 外部联系人useridid | |data[has_one_customer][name] |string| 外部联系人名称 | |data[has_one_customer][avatar] |string| 外部联系人头像头像 | |data[has_one_customer][external_type] |int| 外部联系人类型类型 :1 微信用户 2 企业微信 | |data[has_one_customer][gender] |int| 外部联系人性别性别 | |data[has_one_customer][unionid] |int| 外部联系人公众平台的unionid | |data[has_one_customer][position] |string| 职业职业 | |data[has_one_customer][corp_name] |string| 公司名 | |data[has_one_customer][corp_full_name] |int| 公司名简写写 | |data[has_one_customer][external_profile] |strign| 自定义信息信息 | |data[has_one_customer][is_member] |int| 是否是同步了系统会员 | |data[has_one_employee][business_id] |int| 公司idd 跟crop_id一样 | |data[has_one_employee][uid] |int| 成员的系统会员idd | |data[has_one_employee][user_id] |string| 成员的useridrid | |data[has_one_employee][name] |string| 成员名称名称 | |data[has_one_employee][mobile] |int| 成员手机号 | |data[has_one_employee][position] |string| 职业职业 | |data[has_one_employee][gender] |int| 成员性别性别 | |data[has_one_employee][telephone] |string| 成员电话 | |data[has_one_employee][email] |string| 成员邮箱邮箱 | |data[has_one_employee][avatar] |string| 成员头像像 | |data[has_one_employee][alias] |string| 成员别名别名 | |data[has_one_employee][status] |int| 成员状态 | |tag[0][id] |int| 标签表id | |tag[0][crop_id] |int| 企业idid | |tag[0][tag_id] |string| 标签idd 微信那边的id | |tag[0][name] |string| 标签名称 | |tag[0][create_time] |int| 创建时间间 | |tag[0][order] |int| 排序序 | |tag[0][group_id] |string| 分组idd 微信那边的| |tag[0][group_name] |string| 分组名称 微信那边的| |employee[0][user_id] |string| 成员id|d| |employee[0][name] |string| 成员名称||