获取打卡方案明细
接口说明: 通过方案id获取打卡方案明细
请求方式:POST(HTTPS)
请求地址:https://api.xinrenxinshi.com/v5/attendance/clockplan/detail/plan
请求Header:
key | value |
---|---|
access_token | 获取的access_token的实际值 |
Query参数:
key | value |
---|---|
sign | 签名值 |
Body参数:
参数 | 类型 | 必传(Y/N) | 说明 |
---|---|---|---|
planId | Integer | Y | 打卡方案id |
timestamp | Long | Y | 请求时间戳(精确到毫秒) |
返回结果:
参数 | 类型 | 必传(Y/N) | 说明 |
---|---|---|---|
errcode | Integer | Y | 0成功,其他失败 |
errmsg | String | Y | 结果描述 |
data | AttendanceClockPlanDeteilInfo | Y | 打卡方案明细 |
AttendanceClockPlanDeteilInfo
参数 | 类型 | 必传(Y/N) | 说明 |
---|---|---|---|
clockPlanId | Integer | Y | 打卡方案id |
clockPlanName | String | Y | 打卡方案名称 |
wifiList | List<AttendancePlaceResult> | N | wifi打卡地址列表 |
placeList | List<AttendancePlaceResult> | N | GPS打卡地址列表 |
AttendancePlaceResult
参数 | 类型 | 必传(Y/N) | 说明 |
---|---|---|---|
location | String | N | 位置(GPS打卡返回此信息) |
latitude | Double | N | 纬度(GPS打卡返回此信息) |
longitude | Double | N | 经度(GPS打卡返回此信息) |
distance | Integer | N | 考勤范围距离(GPS打卡返回此信息) |
wifiName | String | N | wifi名称(Wifi打卡返回此信息) |
macAddr | String | N | wifi mac地址(Wifi打卡返回此信息) |
请求示例(HTTPS):
https://api.xinrenxinshi.com/v5/attendance/clockplan/detail/plan?sign=231SDSFDFWdewd
请求Body示例:
{
"planId": 267956,
"timestamp": 1606706970446
}
SDK请求示例(java):
AttendanceClockPlanDetailByPlanRequest request = new AttendanceClockPlanDetailByPlanRequest(access_token());
request.setPlanId(267956);
OpenapiResponse<AttendanceClockPlanDeteilInfo> clockPlanDetail = XrxsAttendanceService.getAttendanceClockPlanDetailByPlan(request);
响应示例:
{
"errcode":0,
"errmsg":"成功",
"data":{
"clockPlanId":267956,
"clockPlanName":"默认方案",
"wifiList":null,
"placeList":[
{
"location":"保利国际中心",
"latitude":30.493295739340535,
"longitude":114.40484585348453,
"distance":200,
"wifiName":null,
"macAddr":null
}
]
}
}