根据员工ID获取班次
POST
/AttendanceOpen/api/v1/WorkShift/GetWorkShiftByUserId
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi.italent.cn/AttendanceOpen/api/v1/WorkShift/GetWorkShiftByUserId' \
--header 'Content-Type: application/json' \
--data-raw '{
"UserDates": [
{
"UserId":"115809748",
"CardDateTime":"2020-10-09"
}
],
"PageIndex": 1,
"PageSize": 1
}'
响应示例响应示例
{
"Data": {
"WorkShifts": [
{
"UserId": 0,
"CardDate": "2019-08-24T14:15:22Z",
"Name": "string",
"Type": 0,
"Attribute": 0,
"DateType": 0,
"IntervalStartTime": "2019-08-24T14:15:22Z",
"IntervalEndTime": "2019-08-24T14:15:22Z",
"BeOndutyTime": "2019-08-24T14:15:22Z",
"BeOffdutyTime": "2019-08-24T14:15:22Z",
"EarlyBeOndutyTime": "2019-08-24T14:15:22Z",
"LatestBeOndutyTime": "2019-08-24T14:15:22Z",
"EarlyBeOffdutyTime": "2019-08-24T14:15:22Z",
"LatestBeOffdutyTime": "2019-08-24T14:15:22Z",
"Message": "string",
"Properties": {
"property1": {},
"property2": {}
}
}
],
"ErrorStaffs": [
{
"UserId": 0,
"Message": "string"
}
],
"Total": 0
},
"Code": "Succeed",
"Message": "string"
}
请求参数
Body 参数application/json
返回响应
修改于 2021-10-13 10:54:22