请求域名:

  • http://xx.com

请求URL:

xx.com/business/{公众号id}/plugin/SopTask/searchStaff

请求类型

POST

参数:

参数名 是否必须 类型 说明
search.staff_info string 员工手机号或名称
search.status int 0未关联 1=已激活,2=已禁用,4=未激活,5=退出企业
search.disabled int 是否禁用 0正常 1禁用
limit 每页数量,默认15

返回示例:与企业管理的查找企业员工是同一个接口

正确时返回:

{
	"result": 1,
	"msg": "成功",
	"data": {
		"current_page": 1,
		"data": [
			{
				"id": 1,
				"user_id": "SunXinJian",
				"name": "孙新建",
				"avatar": "http://wework.qpic.cn/bizmail/r4f9blWlVJOpCPlAticV65autpiaZW6bLc4qfIgnyc39WW9QqxDfb1iag/0",
				"mobile": "15000245941",
				"status": 1,
				"userid": "SunXinJian",
				"avatar_mediaid": "http://wework.qpic.cn/bizmail/r4f9blWlVJOpCPlAticV65autpiaZW6bLc4qfIgnyc39WW9QqxDfb1iag/0"
			},
			{
				"id": 2,
				"user_id": "WeiPing",
				"name": "韦平",
				"avatar": "https://wework.qpic.cn/bizmail/kw0ExyS4j08ibbIFjltI6gib5XpevUZ3ePqyL3oYLkiaDcWE2n1SkAPRA/0",
				"mobile": "15216771448",
				"status": 1,
				"userid": "WeiPing",
				"avatar_mediaid": "https://wework.qpic.cn/bizmail/kw0ExyS4j08ibbIFjltI6gib5XpevUZ3ePqyL3oYLkiaDcWE2n1SkAPRA/0"
			},
			{
				"id": 3,
				"user_id": "MuRan",
				"name": "莫秋宁",
				"avatar": "http://wework.qpic.cn/bizmail/tazz9YmsbNy61RaicGURy6Z08DVGBBukSjhic5OH0L3ToX8kBOvt36og/0",
				"mobile": "17675761991",
				"status": 1,
				"userid": "MuRan",
				"avatar_mediaid": "http://wework.qpic.cn/bizmail/tazz9YmsbNy61RaicGURy6Z08DVGBBukSjhic5OH0L3ToX8kBOvt36og/0"
			}
		],
		"first_page_url": "http://dev19.yunzmall.com/business/1/plugin/SopTask/searchStaff?page=1",
		"from": 1,
		"last_page": 3,
		"last_page_url": "http://dev19.yunzmall.com/business/1/plugin/SopTask/searchStaff?page=3",
		"next_page_url": "http://dev19.yunzmall.com/business/1/plugin/SopTask/searchStaff?page=2",
		"path": "http://dev19.yunzmall.com/business/1/plugin/SopTask/searchStaff",
		"per_page": 15,
		"prev_page_url": null,
		"to": 15,
		"total": 37
	}
}

返回参数说明:

参数名 类型 说明
id int 员工唯一id
user_id string 企业微信员工id
name string 员工名称
avatar string 员工头像
mobile string 员工手机号
status int 员工状态,0未关联 1=已激活,2=已禁用,4=未激活,5=退出企业