- 首页
- 人资项目/组织架构-部门
- 人资项目/员工管理
- 人资项目/登录
- 人资项目/角色管理
- 人资项目/权限点管理
- 人资项目/用户相关
- 社保
- 审批
- 考勤设置管理
- 考勤管理
- 薪资配置
- 薪资管理
- 实战接口
根据部门查询考勤加班规则
开发中
GET
/cfg/extDuty/item
/cfg/extDuty/item
请求参数
Query 参数
departmentId
string
必需
Header 参数
Authorization
string
可选
默认值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://heimahr.itheima.net/api/cfg/extDuty/item?departmentId=' \
--header 'Authorization: Bearer '
返回响应
🟢200成功
application/json
Body
success
boolean
成功标识
code
integer
成功code,10000成功,其它失败
data
object
报文数据
extraDutyRuleList
array [object {7}]
加班规则list
dayOffConfigs
object
调休假
extraDutyConfig
object
其他加班打卡
message
string
提示信息
示例
{
"success": true,
"code": 10000,
"data": {
"extraDutyRuleList": [
{
"id": 16,
"companyId": null,
"departmentId": "14",
"rule": "工作日可申请加班",
"ruleStartTime": "18:30:00",
"ruleEndTime": "23:59:00",
"isTimeOff": "1",
"isEnable": 1
},
{
"id": 17,
"companyId": null,
"departmentId": "14",
"rule": "休息日可申请加班",
"ruleStartTime": "00:00:00",
"ruleEndTime": "23:59:00",
"isTimeOff": "1",
"isEnable": 0
},
{
"id": 18,
"companyId": null,
"departmentId": "14",
"rule": "法定节假日可申请加班",
"ruleStartTime": "00:00:00",
"ruleEndTime": "23:59:00",
"isTimeOff": "1",
"isEnable": 0
}
],
"dayOffConfigs": {
"id": 16,
"companyId": null,
"departmentId": "14",
"latestEffectDate": "06-06"
},
"extraDutyConfig": {
"id": 10,
"companyId": "1",
"departmentId": "14",
"workHoursDay": null,
"isClock": 0,
"isCompensationint": "0"
}
},
"message": "执行成功"
}
修改于 2023-06-02 03:39:29