# 接口说明
- 1.最新接口
- 2.新增或更新自定义档案信息
| 请求方式 | 请求地址 |
|---|---|
| POST | /openapi/func/archive/createOrUpdate |
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| timestamp | 时间戳 | long | Y | 13位时间戳 |
| sign | 签名 | string | Y | lw8osdfj983uh4 |
| access_token | token | string | Y | 登录 token |
| data | 请求数据 | jsonobject | Y | 请求数据 |
| data.third_archive_id | 所属三方档案id | string | Y | 6867868768 |
| data.type | 操作类型 | integer | Y | 1:新增 2:更新 |
| data.archive_name | 档案名称 | string | Y | 自定义档案 |
| data.archive_item_list | 自定义档案项目列表 | jsonArray | Y | 自定义档案项目列表 |
| data.archive_item_list.code | 档案项目编号 | string | Y | 档案项目编号 |
| data.archive_item_list.name | 档案项目名称 | string | Y | 档案项目名称 |
| data.archive_item_list.third_parent_id | 所属上级项目id | string | N | 所属上级项目id |
| data.archive_item_list.state | 档案项目状态 | integer | N | 1:启用 0:停用 |
| data.archive_item_list.use_range | 人员可用范围 | integer | N | 1:全部人员可用 2:部分人员可用 |
| data.archive_item_list.third_member_ids | 成员(人) | jsonArray | N | |
| data.archive_item_list.third_member_dept_ids | 成员(部门) | jsonArray | N | |
| data.archive_item_list.third_project_id | 所属三方项目id | string | Y | 所属三方项目id |
请求示例:
"access_token":"5747fbc10f0e60e0709d8d722",
"sign":"oihfnlyeofdh98",
"timestamp":124124325,
"employee_id":"59b74c1323445f2d54dd07922",
"employee_type":"1",
"data":{
"third_archive_id": "20211106",
"archive_name": "自定义档案测试1106",
"type": 1,
"archive_item_list": [{
"code": "1031",
"name": "测试自定义档案项目",
"third_project_id": "9887766",
"state": 1,
"use_range": 2,
"third_member_ids": ["32746236", "273482748", "u3282482", "u8hjhjhs", "738274h"]
}]
}
响应数据:
失败返回:
{
"trace_id": "76b7295b634f4f569f2a6030785d0d84.296.16372059262147027",
"code": -9999,
"msg": "仅可对自定义档案下的项目进行操作,自定义档案三方id:20211112,传入更新档案id:20211106",
"request_id": "ICBYJLki8eIzvMfM"
}
成功返回:
{
"trace_id": "76b7295b634f4f569f2a6030785d0d84.295.16372067521217177",
"code": 0,
"msg": "success",
"data": [],
"request_id": "8IqTN557WnI8SXhf"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40