获取全部管理组信息
最后更新:2023/05/30企业可通过此接口获取全部管理组信息
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/authgroup/query_all_auth_group_list?access_token=x
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | str | 是 | 调用接口凭证 |
Body参数:
{
"user_id": "userId"
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
user_id | str | 是 | 操作人user_id |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"super_group": {
"type": 0,
"level": 1,
"children": [],
"group_id": 101,
"node_name": "超级管理组",
"is_group": true,
"user_total": null,
"parent_id": 0,
"is_leaf": 0
},
"common_list": [
{
"type": 1,
"level": 1,
"children": [
{
"type": 1,
"level": 2,
"children": [],
"group_id": 1427910103564872542,
"node_name": "分管组2",
"is_group": true,
"user_total": null,
"parent_id": 1327910113564872642,
"is_leaf": 0
}
],
"group_id": 1327910113564872642,
"node_name": "分管组1",
"is_group": true,
"user_total": null,
"parent_id": 0,
"is_leaf": 1
}
]
},
"sub_code": "00000"
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
msg | str | 对返回码的文本描述内容 |
data | object | 返回数据 |
super_group | obj | 超级管理组 |
group_id | long | 权限组id |
node_name | str | 权限组名称 |
is_group | bool | 是否是管理组 |
user_total | int | 当前权限组管理员人数包含下级管理组人数 |
type | int | 权限组类型 |
parent_id | long | 父管理组id |
level | int | 层级 最多5级 |
is_leaf | int | 是否叶子节点 0是 1否 |
children | authGroup[] | 子管理组 |
common_list | authGroup[] | 自定义管理组 |
group_id | long | 权限组id |
node_name | str | 权限组名称 |
is_group | bool | 是否是管理组 |
user_total | int | 当前权限组管理员人数包含下级管理组人数 |
type | int | 权限组类型 |
parent_id | long | 父管理组id |
level | int | 层级 最多5级 |
is_leaf | int | 是否叶子节点 0是 1否 |
children | authGroup[] | 子管理组 |
sub_code | str | 业务异常返回码 |