作者:管理员  历史版本:1  最后编辑:龚清  更新时间:2024-06-15 15:03

获取所有组织树

简述:

  • 获取所有组织树;orgId组织id

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:

暂无

  • Body:
名称 类型 是否必须 默认值 备注 其他信息
request APIRequest[1] 动态查询请求对象

请求参数示例:

{
  "parameters": [
    {
      "key": "orgId",
      "value": "958399520851361792"
    }
  ]
}

返回示例:

{
  "state": 200,
  "request": null,
  "message": "",
  "cause": "",
  "variables": {},
  "data": [
    {
      "pk": "",
      "name": "testh1",
      "ip": null,
      "createBy": "958054023863205888",
      "createTime": "2022-03-29 16:18:28",
      "updateBy": "958054023863205888",
      "updateTime": "2022-03-29 16:18:28",
      "tenantId": null,
      "dataStatus": null,
      "deleted": null,
      "dbType": null,
      "dsAlias": null,
      "id": "958399754688004096",
      "partyType": null,
      "alias": "testh1",
      "parentId": "958399520851361792",
      "path": "958399520851361792.958399754688004096.",
      "depth": 2,
      "sn": null,
      "icon": null,
      "type": "org",
      "nocheck": false,
      "chkDisabled": false,
      "click": true,
      "title": "testh1",
      "open": "true",
      "hasChild": false
    }
  ]
}

返回参数说明:

名称 类型 备注
data List< PartyEntityTreePo > 组织树对象

获取所在组织组织树

简述:

  • 获取所在组织组织树;orgId组织id;includeSub是否包含子节点

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:

暂无

  • Body:
名称 类型 是否必须 默认值 备注 其他信息
request APIRequest[1] 动态查询请求对象

请求参数示例:

{}

返回示例:

{
  "state": 200,
  "request": null,
  "message": "",
  "cause": "",
  "variables": {},
  "data": [
    {
      "pk": "",
      "name": "机构树",
      "ip": null,
      "createBy": null,
      "createTime": null,
      "updateBy": null,
      "updateTime": null,
      "tenantId": null,
      "dataStatus": null,
      "deleted": null,
      "dbType": null,
      "dsAlias": null,
      "id": "0",
      "partyType": null,
      "alias": null,
      "parentId": null,
      "path": null,
      "depth": null,
      "sn": null,
      "icon": "ibps-icon-home",
      "type": null,
      "nocheck": false,
      "chkDisabled": false,
      "click": true,
      "title": "机构树",
      "open": "true",
      "hasChild": false
    }
  ]
}

返回参数说明:

名称 类型 备注
data List< PartyEntityTreePo > 组织树对象

获取指定组织组织树

简述:

  • 获取指定组织组织树;orgId组织id;orgIds指定组织设置的所有id(必须);includeSub是否包含子节点

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:

暂无

  • Body:
名称 类型 是否必须 默认值 备注 其他信息
request APIRequest[1] 动态查询请求对象

请求参数示例:

{
  "parameters": [
    {
      "key": "orgIds",
      "value": "964176040823881728,964930577197170688"
    }
  ]
}

返回示例:

{
  "state": 200,
  "request": null,
  "message": "",
  "cause": "",
  "variables": {},
  "data": [
    {
      "pk": "",
      "name": "坤啊",
      "ip": null,
      "createBy": "958380290936406016",
      "createTime": "2022-04-14 14:51:22",
      "updateBy": "958380290936406016",
      "updateTime": "2022-04-14 14:53:16",
      "tenantId": null,
      "dataStatus": null,
      "deleted": null,
      "dbType": null,
      "dsAlias": null,
      "id": "964176040823881728",
      "partyType": null,
      "alias": "ka",
      "parentId": "0",
      "path": "964176040823881728.",
      "depth": 1,
      "sn": null,
      "icon": null,
      "type": "org",
      "nocheck": false,
      "chkDisabled": false,
      "click": true,
      "title": "坤啊",
      "open": "true",
      "hasChild": false
    },
    {
      "pk": "",
      "name": "man组织",
      "ip": null,
      "createBy": "1",
      "createTime": "2022-04-16 16:49:37",
      "updateBy": "1",
      "updateTime": "2022-04-16 16:49:37",
      "tenantId": null,
      "dataStatus": null,
      "deleted": null,
      "dbType": null,
      "dsAlias": null,
      "id": "964930577197170688",
      "partyType": null,
      "alias": "manzz",
      "parentId": "0",
      "path": "964930577197170688.",
      "depth": 1,
      "sn": null,
      "icon": null,
      "type": "org",
      "nocheck": false,
      "chkDisabled": false,
      "click": true,
      "title": "man组织",
      "open": "true",
      "hasChild": false
    },
    {
      "pk": "",
      "name": "机构树",
      "ip": null,
      "createBy": null,
      "createTime": null,
      "updateBy": null,
      "updateTime": null,
      "tenantId": null,
      "dataStatus": null,
      "deleted": null,
      "dbType": null,
      "dsAlias": null,
      "id": "0",
      "partyType": null,
      "alias": null,
      "parentId": null,
      "path": null,
      "depth": null,
      "sn": null,
      "icon": "ibps-icon-home",
      "type": null,
      "nocheck": false,
      "chkDisabled": false,
      "click": true,
      "title": "机构树",
      "open": "true",
      "hasChild": false
    }
  ]
}

返回参数说明:

名称 类型 备注
data List< PartyEntityTreePo > 组织树对象

根据当前选择用户id,获取所在组织节点数据包含下级

简述:

  • 根据当前选择用户id,获取所在组织节点数据包含下级

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:

暂无

  • Body:
名称 类型 是否必须 默认值 备注 其他信息
request APIRequest[1] 动态查询请求对象

请求参数示例:

{
  "parameters": [
    {
      "key": "userId",
      "value": "964174162652299264"
    }
  ]
}

返回示例:

{
  "state": 200,
  "request": null,
  "message": "",
  "cause": "",
  "variables": {},
  "data": [
    {
      "pk": "",
      "name": "机构树",
      "ip": null,
      "createBy": null,
      "createTime": null,
      "updateBy": null,
      "updateTime": null,
      "tenantId": null,
      "dataStatus": null,
      "deleted": null,
      "dbType": null,
      "dsAlias": null,
      "id": "0",
      "partyType": null,
      "alias": null,
      "parentId": null,
      "path": null,
      "depth": null,
      "sn": null,
      "icon": "ibps-icon-home",
      "type": null,
      "nocheck": false,
      "chkDisabled": false,
      "click": true,
      "title": "机构树",
      "open": "true",
      "hasChild": false
    },
    {
      "pk": "",
      "name": "坤啊",
      "ip": null,
      "createBy": "958380290936406016",
      "createTime": "2022-04-14 14:51:22",
      "updateBy": "958380290936406016",
      "updateTime": "2022-04-14 14:53:16",
      "tenantId": null,
      "dataStatus": null,
      "deleted": null,
      "dbType": null,
      "dsAlias": null,
      "id": "964176040823881728",
      "partyType": null,
      "alias": "ka",
      "parentId": "0",
      "path": "964176040823881728.",
      "depth": 1,
      "sn": null,
      "icon": null,
      "type": "org",
      "nocheck": false,
      "chkDisabled": false,
      "click": true,
      "title": "坤啊",
      "open": "true",
      "hasChild": false
    }
  ]
}

返回参数说明:

名称 类型 备注
data List< PartyEntityTreePo > 组织树对象

备注