Url
[接口服务器地址]/api/orgs/dept_detail.html
Request Headers
Name |
必选 |
Type |
Description |
Content-Type |
true |
string |
application/json; charset=UTF-8 |
authen |
true |
string |
Authen 什么是认证码
|
appid |
true |
string |
AppID 什么是接入ID
|
timestamp |
true |
string |
Timestamp |
uid |
true |
string |
UID |
lang |
true |
string |
Language zh-cn,en-us
|
Request Body
Name |
必选 |
Type |
Description |
org_id |
true |
string |
组织ID |
dept_id |
false |
string |
部门ID -1 表示显示组织下所有的部门 |
type |
false |
string |
查询类型 dept:显示节点下部门(默认) user:显示节点下人员 all:显示节点部门及人员 |
Return
{"status":1,"code":0,"msg":"","data":{"list":[{"gid":"74211e58a9f511e98ba588d7f697be9a","name":"人事部","pid":"","code":"0005","sort":1000,"user_count":2,"type":"dept"},{"gid":"78d5759ea78d11e9957f88d7f697be9a","name":"研发部","pid":"","code":"0002","sort":1000,"user_count":2,"type":"dept"}]}}