员工外派协议接口文档
员工外派协议接口文档
该文档提供员工外派协议相关的接口,方便开发者快速接入和使用。
接口列表
| 接口名称 | 说明 | 请求方法 | 请求参数 | 返回值 |
|---|---|---|---|---| |
| addEmployeeOutAgreement | 添加员工外派协议 | POST | employeeOutAgreement 对象, user 对象 | 成功:true, 失败:false |
| updateEmployeeOutAgreement | 修改员工外派协议 | PUT | employeeOutAgreement 对象, user 对象 | 成功:true, 失败:false |
| getEmployeeOutAgreementById | 根据外派协议id查找外派协议 | GET | id | 员工外派协议对象 |
| deleteEmployeeOutAgreement | 根据外派协议id删除外派协议 | DELETE | id | 成功:true, 失败:false |
| getEmployeeOutAgreementByPage | 分页查询外派协议 | GET | start, limit | 员工外派协议列表 |
| getEmployeeOutAgreementByName | 根据姓名查找外派协议 | GET | name | 员工外派协议列表 |
| getEmployeeOutAgreementByStatus | 根据状态查找外派协议 | GET | status | 员工外派协议列表 |
| getEmployeeOutAgreementByTime | 根据时间查找外派协议 | GET | beginTime, endTime | 员工外派协议列表 |
| getEmployeeOutAgreementByEmployeeId | 根据员工id查找外派协议 | GET | employeeId | 员工外派协议列表 |
| getEmployeeOutAgreementByDepartmentId | 根据部门id查找外派协议 | GET | departmentId | 员工外派协议列表 |
| getEmployeeOutAgreementByEmployeeIdAndDepartmentId | 根据员工id和部门id查找外派协议 | GET | employeeId, departmentId | 员工外派协议列表 |
| issueEmployeeOutAgreement | 根据外派协议id发布外派协议 | PUT | id, user 对象 | 成功:true, 失败:false |
| cancelIssueEmployeeOutAgreement | 根据外派协议id取消发布外派协议 | PUT | id, user 对象 | 成功:true, 失败:false |
| auditEmployeeOutAgreement | 根据外派协议id审核外派协议 | PUT | id, user 对象 | 成功:true, 失败:false |
| cancelAuditEmployeeOutAgreement | 根据外派协议id取消审核外派协议 | PUT | id, user 对象 | 成功:true, 失败:false |
| approveEmployeeOutAgreement | 根据外派协议id审批外派协议 | PUT | id, user 对象 | 成功:true, 失败:false |
| cancelApproveEmployeeOutAgreement | 根据外派协议id取消审批外派协议 | PUT | id, user 对象 | 成功:true, 失败:false |
接口参数说明
| 参数名称 | 参数类型 | 说明 |
|---|---|---| |
| id | String | 外派协议id |
| employeeOutAgreement | 对象 | 员工外派协议对象 |
| user | 对象 | 用户对象 |
| start | String | 分页起始页码 |
| limit | String | 分页每页数量 |
| name | String | 员工姓名 |
| status | String | 外派协议状态 |
| beginTime | String | 开始时间 |
| endTime | String | 结束时间 |
| employeeId | String | 员工id |
| departmentId | String | 部门id |
接口返回值说明
| 返回值 | 说明 |
|---|---| |
| true | 操作成功 |
| false | 操作失败 |
代码示例
// 添加员工外派协议
EmployeeOutAgreement employeeOutAgreement = new EmployeeOutAgreement();
// 设置员工外派协议相关信息
user = new User();
// 设置用户信息
addEmployeeOutAgreement(employeeOutAgreement, user);
// 根据外派协议id查询外派协议
EmployeeOutAgreement agreement = getEmployeeOutAgreementById("1234567890");
// 删除外派协议
deleteEmployeeOutAgreement("1234567890");
注意
- 所有接口均需要进行身份验证。
- 所有时间参数均为时间戳格式。
- 所有接口返回值均为 JSON 格式。
原文地址: https://www.cveoy.top/t/topic/lgjG 著作权归作者所有。请勿转载和采集!