作者:管理员 历史版本:1 最后编辑:龚清 更新时间:2024-09-20 15:13
查询所有角色树
简述:
- 查询所有角色树
请求URL:
http://ip:port/ibps/platform/v3/selector/role/findTreeDataByAll
URL中的ip需要替换为自己网关ip
URL中的port需要替换为自己网关端口
请求方式: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,
"roleNote": null,
"roleAlias": null,
"subSystemId": null,
"subSystemName": null,
"subSystemAlias": null,
"icon": "ibps-icon-home",
"type": "root",
"nocheck": false,
"chkDisabled": false,
"click": true,
"title": "",
"open": "true"
},
{
"pk": "",
"name": "IBPS平台",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "266946423468851203",
"partyType": null,
"alias": null,
"parentId": "0",
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": null,
"subSystemId": null,
"subSystemName": null,
"subSystemAlias": null,
"icon": null,
"type": "sys",
"nocheck": false,
"chkDisabled": false,
"click": true,
"title": "",
"open": "true"
},
{
"pk": "",
"name": "所有菜单角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "466555768422793216",
"partyType": null,
"alias": null,
"parentId": "266946423468851203",
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": null,
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"icon": null,
"type": "role",
"nocheck": false,
"chkDisabled": false,
"click": true,
"title": "",
"open": "true"
},
{
"pk": "",
"name": "用户管理角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "466555804980346880",
"partyType": null,
"alias": null,
"parentId": "266946423468851203",
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": null,
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"icon": null,
"type": "role",
"nocheck": false,
"chkDisabled": false,
"click": true,
"title": "",
"open": "true"
},
{
"pk": "",
"name": "表单管理角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "466555834088816640",
"partyType": null,
"alias": null,
"parentId": "266946423468851203",
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": null,
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"icon": null,
"type": "role",
"nocheck": false,
"chkDisabled": false,
"click": true,
"title": "",
"open": "true"
},
{
"pk": "",
"name": "工作流程角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "466555864010981376",
"partyType": null,
"alias": null,
"parentId": "266946423468851203",
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": null,
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"icon": null,
"type": "role",
"nocheck": false,
"chkDisabled": false,
"click": true,
"title": "",
"open": "true"
},
{
"pk": "",
"name": "个人办公角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "466555896126767104",
"partyType": null,
"alias": null,
"parentId": "266946423468851203",
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": null,
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"icon": null,
"type": "role",
"nocheck": false,
"chkDisabled": false,
"click": true,
"title": "",
"open": "true"
},
{
"pk": "",
"name": "wss",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "969204247457431552",
"partyType": null,
"alias": null,
"parentId": "266946423468851203",
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": null,
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"icon": null,
"type": "role",
"nocheck": false,
"chkDisabled": false,
"click": true,
"title": "",
"open": "true"
}
]
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< PartyRoleTreePo > | 角色树对象 |
查询所在角色树
简述:
- 查询所在角色树
请求URL:
- http://ip:port/ibps/platform/v3/selector/role/findTreeDataByCurrentRole
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
{}
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": [
{
"pk": "",
"name": "wss",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "969204247457431552",
"partyType": null,
"alias": null,
"parentId": "266946423468851203",
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": null,
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"icon": null,
"type": "role",
"nocheck": false,
"chkDisabled": false,
"click": true,
"title": "",
"open": "true"
}
]
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< PartyRoleTreePo > | 角色树对象 |
查询指定角色树
简述:
- 查询指定角色树;roleIds:指定范围设置所选角色,必传
请求URL:
- http://ip:port/ibps/platform/v3/selector/role/findTreeDataByRole
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
{
"parameters": [
{
"key": "roleIds",
"value": "969204247457431552"
}
]
}
返回示例:
{
"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,
"roleNote": null,
"roleAlias": null,
"subSystemId": null,
"subSystemName": null,
"subSystemAlias": null,
"icon": "ibps-icon-home",
"type": "root",
"nocheck": false,
"chkDisabled": false,
"click": true,
"title": "",
"open": "true"
},
{
"pk": "",
"name": "wss",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "969204247457431552",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": null,
"subSystemId": null,
"subSystemName": null,
"subSystemAlias": null,
"icon": null,
"type": "role",
"nocheck": false,
"chkDisabled": false,
"click": true,
"title": "",
"open": "true"
}
]
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< PartyRoleTreePo > | 角色树对象 |
查询角色列表(全部)
简述:
- 查询角色列表(全部)
请求URL:
- http://ip:port/ibps/platform/v3/selector/role/queryAll
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
{}
返回示例:
{
"state": 200,
"request": null,
"message": "获取角色列表成功!",
"cause": "",
"variables": {},
"data": {
"dataResult": [
{
"pk": "",
"name": "wss",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "969204247457431552",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "wss",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": "ibps",
"canDelete": false,
"source": null,
"roleRightsList": null
},
{
"pk": "",
"name": "添加子系统新角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "964092615609810944",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "tjzxtxjs",
"subSystemId": null,
"subSystemName": null,
"subSystemAlias": null,
"canDelete": false,
"source": null,
"roleRightsList": null
},
{
"pk": "",
"name": "子系统02的角色02",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "964090635264983040",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "zxt02djs02",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": "ibps",
"canDelete": false,
"source": null,
"roleRightsList": null
},
{
"pk": "",
"name": "子系统02的角色01",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "964090597587550208",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "zxt02djs01",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": "ibps",
"canDelete": false,
"source": null,
"roleRightsList": null
}
]
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< PartyRoleTreePo > | 角色树对象 |
查询角色列表(指定角色)
简述:
- 查询角色列表(全部);roleId角色id,多个值使用英文逗号隔开
请求URL:
- http://ip:port/ibps/platform/v3/selector/role/queryAssign
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
{
"parameters": [
{
"key": "roleIds",
"value": "969204247457431552"
}
]
}
返回示例:
{
"state": 200,
"request": null,
"message": "获取角色列表成功!",
"cause": "",
"variables": {},
"data": {
"dataResult": [
{
"pk": "",
"name": "wss",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "969204247457431552",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "wss",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": "ibps",
"canDelete": false,
"source": null,
"roleRightsList": null
}
],
"pageResult": null
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< PartyRoleTreePo > | 角色树对象 |
查询角色列表(当前角色)
简述:
- 查询角色列表(当前角色)
请求URL:
- http://ip:port/ibps/platform/v3/selector/role/queryCurrent
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
{}
返回示例:
{
"state": 200,
"request": null,
"message": "获取角色列表成功!",
"cause": "",
"variables": {},
"data": {
"dataResult": [
{
"pk": "",
"name": "wss",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"deleted": null,
"dbType": null,
"dsAlias": null,
"id": "969204247457431552",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "wss",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": "ibps",
"canDelete": false,
"source": null,
"roleRightsList": null
}
],
"pageResult": null
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< PartyRoleTreePo > | 角色树对象 |
备注
- [1] : APIRequest为动态查询请求对象,详情请移步全局请求格式