- 开发指南
- 登录管理
- 告警业务
- 定位信息
- 考勤与工时统计
- 历史轨迹/视频查询
- 电子点名与统计区域
- 巡检任务
- IFrame页面应用
- 附录
工时统计
POST
/localsense/attendance/getAttDuration
考勤区域api
请求参数
Header 参数
token
string
必需
默认值:
{{logintoken}}
Body 参数application/json
工时统计传参
areaIds
string
区域id
from
string
开始时间
tagIds
string
标签id
to
string
结束时间
示例
{
"areaIds": "string",
"from": "string",
"tagIds": "string",
"to": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/localsense/attendance/getAttDuration' \
--header 'token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"areaIds": "string",
"from": "string",
"tagIds": "string",
"to": "string"
}'
返回响应
🟢200OK
application/json
Body
code
integer <int32>
可选
data
array[object (工时统计出参) {2}]
响应数据
date
string
日期
tagIds
array[object (AttendanceDurtionTagDTO) {4}]
标签信息
msg
string
响应说明
示例
{
"code": 200,
"msg": "success",
"data": [
{
"date": "2022-07-01",
"tagIds": [
{
"tagId": "1",
"name": "标签1",
"groupName": "初始机构",
"areas": [
{
"areaId": "966638667505664",
"areaName": "工作区域1",
"updateTime": 1656666684754,
"workTimes": 101,
"events": null,
"ioEvents": null
},
{
"areaId": "966398867030016",
"areaName": "ghf",
"updateTime": 1656666821754,
"workTimes": 639,
"events": null,
"ioEvents": null
}
]
}
]
}
]
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found