# 接口说明

  • 1.最新接口
  • 2.支持分页查询部门列表信息
请求方式 请求地址
POST /openapi/func/department/list

请求参数

字段 名称 类型 必填 描述
timestamp 时间戳 long Y 13位时间戳
sign 签名 string Y argfewfsvre345eg
access_token token string Y 登录 token
employee_id 操作人id string Y 操作人id,调用接口人 id
employee_type 用户类型 string Y 类型,0为分贝用户,1为第三方用户
data 请求数据 jsonstring Y 请求数据
data.type 类型 integer Y 固定为1
data.page_size 每页条数 integer N 不传时默认20,最大100
data.page_index 页码 integer N 不传时默认第1页

请求示例:


"access_token": "xxx.xxx.xxx",
"timestamp": 123456789,
"employee_id":"12345678",
"sign": "jifejfwojelajflejf",
"data": {
            "page_index": 1,
            "page_size": 20,
            "type": 1
        }


1
2
3
4
5
6
7
8
9
10
11
12

返回结果

{
	"request_id": "ugNhzoCs8aqkpwu5",
	"trace_id": "754298146d1a40699df39c6d9b59448e.124.16512197753540027",
	"code": 0,
	"msg": "success",
	"data": {
		"total_count": 3, // 总数据条数
		"page_size": 20, // 每页条数
		"page_index": 1, // 当前页
		"total_page": 1, // 总页数
		"data_list": [ // 数据
			{
				"employee_count": 0, //员工数
				"org_third_unit_id": "dingding10", //部门id
				"org_third_unit_parent_id": "", //三方父部门id
				"org_unit_full_name": "北京分贝测试科技有限公司", //部门全称
				"org_unit_id": "46576678768889", //部门分贝通id
				"org_unit_name": "北京分贝测试科技有限公司", //部门名称
				"org_unit_parent_full_name": "", //父部门全称
                "org_unit_parent_id": "5876878798790",//父部门id
				"org_unit_parent_name": "" //父部门名称
			},
			{
				"employee_count": 0,
				"org_third_unit_id": "p-thud",
				"org_third_unit_parent_id": "",
				"org_unit_full_name": "青蛙小屋",
				"org_unit_id": "57687678789989",
				"org_unit_name": "青蛙小屋",
				"org_unit_parent_full_name": "",
				"org_unit_parent_id": "5876878798799",
				"org_unit_parent_name": ""
			},
			{
				"employee_count": 0,
				"org_third_unit_id": "4654675678787",
				"org_third_unit_parent_id": "dingding10",
				"org_unit_full_name": "北京测试科技有限公司/研发部",
				"org_unit_id": "465768778989890",
				"org_unit_name": "研发部",
				"org_unit_parent_full_name": "北京测试科技有限公司",
				"org_unit_parent_id": "46545675778889",
				"org_unit_parent_name": "北京测试科技有限公司"
			}
		]
	}
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
41
42
43
44
45
46
lastUpdate: 6/27/2022, 2:05:24 PM