审批类型
接口说明: 获取公司所有的审批类型。
请求方式:POST(HTTPS)
请求地址:https://api.xinrenxinshi.com/v5/workflow/flowtypes
请求Header:
key | value |
---|---|
access_token | 获取的access_token的实际值 |
Query参数:
key | value |
---|---|
sign | 签名值 |
Body参数:
参数 | 类型 | 必传(Y/N) | 说明 |
---|---|---|---|
timestamp | Long | Y | 请求时间戳(精确到毫秒) |
返回结果:
参数 | 类型 | 必传(Y/N) | 说明 |
---|---|---|---|
errcode | Integer | Y | 0成功,其他失败 |
errmsg | String | Y | 操作结果描述 |
data | List<FlowType> | N | 处理成功时的数据结果 |
FlowType
参数 | 类型 | 必传(Y/N) | 说明 |
---|---|---|---|
flowTypeId | Integer | Y | 审批类型id |
name | String | Y | 审批类型名称 |
settingId | Integer | Y | 审批设置id |
status | Integer | Y | 是否启用,1-启用,2-关闭 |
请求示例(HTTPS):
https://api.xinrenxinshi.com/v5/workflow/flowtypes?sign=7omyqoNIY5QPWKCyQM3Q7Hk8mNQ=
请求Body示例:
{
"timestamp": 1606297914820
}
SDK请求示例(java):
ApprovalTypeGetRequest request = new ApprovalTypeGetRequest(access_token);
OpenapiResponse<List<FlowType>> fLowTypes = XrxsApprovalService.getFLowTypes(request);
响应示例:
{
"errcode":0,
"errmsg":"成功",
"data":[
{
"name":"转正",
"flowTypeId":1,
"settingId":8758668,
"status":2
},
{
"name":"调岗",
"flowTypeId":2,
"settingId":8758669,
"status":1
},
{
"name":"调薪",
"flowTypeId":3,
"settingId":8758670,
"status":2
},
{
"name":"请假",
"flowTypeId":4,
"settingId":8758671,
"status":1
},
{
"name":"外出",
"flowTypeId":5,
"settingId":8758672,
"status":2
},
{
"name":"补卡",
"flowTypeId":6,
"settingId":8758673,
"status":2
},
{
"name":"销假",
"flowTypeId":7,
"settingId":8758674,
"status":2
},
{
"name":"销外出",
"flowTypeId":8,
"settingId":8758675,
"status":2
},
{
"name":"加班",
"flowTypeId":9,
"settingId":8758676,
"status":2
},
{
"name":"外勤",
"flowTypeId":10,
"settingId":8758677,
"status":2
},
{
"name":"离职",
"flowTypeId":11,
"settingId":8758678,
"status":2
},
{
"name":"招聘",
"flowTypeId":12,
"settingId":8758679,
"status":2
},
{
"name":"录用",
"flowTypeId":13,
"settingId":8758680,
"status":2
},
{
"name":"工资审核",
"flowTypeId":15,
"settingId":8758681,
"status":2
},
{
"name":"出差",
"flowTypeId":16,
"settingId":8758682,
"status":2
},
{
"name":"销出差",
"flowTypeId":17,
"settingId":8758683,
"status":2
},
{
"name":"员工信息审核",
"flowTypeId":18,
"settingId":8758684,
"status":2
},
{
"name":"员工类证明",
"flowTypeId":19,
"settingId":8758685,
"status":2
},
{
"name":"工资类证明",
"flowTypeId":20,
"settingId":8758686,
"status":2
},
{
"name":"离职交接",
"flowTypeId":21,
"settingId":8758687,
"status":2
},
{
"name":"调店",
"flowTypeId":22,
"settingId":8758688,
"status":2
},
{
"name":"入职",
"flowTypeId":23,
"settingId":8758689,
"status":2
},
{
"name":"待办测试",
"flowTypeId":1201861,
"settingId":8832622,
"status":1
},
{
"name":"电子合同",
"flowTypeId":24,
"settingId":8758690,
"status":2
},
{
"name":"批量调薪",
"flowTypeId":25,
"settingId":8758691,
"status":2
},
{
"name":"上传工资明细",
"flowTypeId":26,
"settingId":8758692,
"status":2
},
{
"name":"上传社保公积金明细",
"flowTypeId":27,
"settingId":8758693,
"status":2
},
{
"name":"批量转正",
"flowTypeId":28,
"settingId":8758694,
"status":2
},
{
"name":"调班",
"flowTypeId":29,
"settingId":8758695,
"status":2
},
{
"name":"奖金包",
"flowTypeId":30,
"settingId":8758696,
"status":2
},
{
"name":"更新卡",
"flowTypeId":31,
"settingId":8814443,
"status":2
},
{
"name":"付款",
"flowTypeId":1195890,
"settingId":8758700,
"status":2
},
{
"name":"待入职员工信息审核",
"flowTypeId":32,
"settingId":8833982,
"status":2
},
{
"name":"物品领用",
"flowTypeId":1195891,
"settingId":8758701,
"status":2
},
{
"name":"管理员权限",
"flowTypeId":33,
"settingId":8839995,
"status":2
},
{
"name":"采购",
"flowTypeId":1195888,
"settingId":8758698,
"status":2
},
{
"name":"印章",
"flowTypeId":1195889,
"settingId":8758699,
"status":2
},
{
"name":"合同审核",
"flowTypeId":1195892,
"settingId":8758702,
"status":2
}
]
}