简要描述
- 调用接口查看家政员列表
接口版本
版本号 | 制定人 | 制定日期 | 修订日期 |
---|---|---|---|
V 1.0 | xxxx-xx-xx |
请求URL:
请求方式:
- GET
请求参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
access_token | 是 | string | 获取到的授权码access_token |
unified_social_credit_code | 是 | string | 本公司社会统一信用代码 |
order_status | 否 | string | 空-全部家政员、no_order-从未服务过的家政员、110-有黑名单记录的家政员、on_duty-在岗家政员、free-待岗家政员 |
num | 否 | string | 每页显示条数,留空默认每页10条,控制了每页最多可显示20条 |
page | 否 | string | 查询第几页数据,留空默认第1页,控制最多翻10页,建议补全关键字 |
返回示例:
正确时返回一:
{
"code": 200,
"msg": "查询成功!",
"data": {
"status": "success",
"employees": [
{
"employee_name": "张三",
"employee_sex": "女",
"employee_nation": "汉族",
"employee_native_place": "广东",
"employee_date_of_birth": "1976-10-05",
"employee_phone": "13800138001",
"urlcode": "cc0441e062aa703441ed669823386112"
},
{
"employee_name": "李四",
"employee_sex": "女",
"employee_nation": "汉族",
"employee_native_place": "广西",
"employee_date_of_birth": "1976-10-05",
"employee_phone": "13800138002",
"urlcode": "cc0441e062aa703441ed669823386121"
}
],
"page": 1,
"num": 10,
"page_num": 1,
"耗时": 0.088999999999999996
}
}
错误时返回:
{
"code": 400,
"msg": "access_token 无效!",
"data": {
"status": "error"
}
}
说明:出现此错误时,请重新请求授权。