添加角色人员
简述:
- 添加角色人员
请求URL:
- http://ip:port/ibps/platform/v3/role/addUser
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
roleId | String | 是 | 角色ID | ||
userIds | String[] | 是 | 用户ID数组 |
TODO 接口参数需要重构,改为body参数
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/role/addUser?roleId=645929316542054400&userIds=645929316542054400
返回示例:
{
"state": 200,
"request": null,
"message": "角色人员添加成功",
"cause": "",
"variables": {},
"data": null
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
查询角色列表
简述:
- 查询角色列表
请求URL:
- http://ip:port/ibps/platform/v3/role/query
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
{
"parameters": [],
"requestPage": {
"pageNo": 1,
"limit": 20
},
"sorts": []
}
返回示例:
{
"state": 200,
"request": null,
"message": "获取角色列表成功!",
"cause": "",
"variables": {},
"data": {
"dataResult": [
{
"pk": "",
"name": "css",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "645929316542054400",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "css",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "xxx酒色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "642030718829985792",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "xxxjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "学生角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "641324268541444096",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "xsjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "新角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "640857826977120256",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "吃的晚",
"roleAlias": "xjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "测试接口",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "636244424573059072",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "csjk",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "测试角色2",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "631504854686105600",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "csjs2",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "测试角色1",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "631504817973362688",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "csjs1",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "校务秘书审批",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "631489693308944384",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "xwms",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "团委审批",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "631489583191687168",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "tw",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "辅导员审批",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "631489471967133696",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": "",
"roleAlias": "fdy",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "报表中心角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466556015127560192",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "bbzxjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "代码管理角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555980948176896",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "dmgljs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "系统管理角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555953945247744",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "xtgljs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "信息管理角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555926271229952",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "xxgljs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "个人办公角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555896126767104",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "grbgjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "工作流程角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555864010981376",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "gzlcjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "表单管理角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555834088816640",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "bdgljs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "用户管理角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555804980346880",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "yhgljs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
},
{
"pk": "",
"name": "所有菜单角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555768422793216",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "sycdjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
}
],
"pageResult": {
"limit": 20,
"page": 1,
"totalCount": 19,
"totalPages": 1
}
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | APIPageList< PartyRolePo > | 角色对象列表 |
查询组织角色以及父级组织的角色
简述:
- 查询组织角色以及父级组织的角色
请求URL:
- http://ip:port/ibps/platform/v3/role/queryByOrgId
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
{
"parameters": [
{
"key": "orgId",
"value": "625704057729712128"
}
],
"requestPage": {
"pageNo": 1,
"limit": 20
},
"sorts": []
}
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"dataResult": [
{
"pk": "",
"name": "个人办公角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555896126767104",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "grbgjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": true,
"source": "自有"
}
],
"pageResult": {
"limit": 20,
"page": 1,
"totalCount": 1,
"totalPages": 1
}
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | APIPageList< PartyRolePo > | 角色对象列表 |
查询岗位角色以及岗位所在组织的角色
简述:
- 查询岗位角色以及岗位所在组织的角色
请求URL:
- http://ip:port/ibps/platform/v3/role/queryByPositionId
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
{
"parameters": [
{
"key": "positionId",
"value": "636222256975970304"
}
],
"requestPage": {
"pageNo": 1,
"limit": 20
},
"sorts": []
}
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"dataResult": [],
"pageResult": null
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | APIPageList< PartyRolePo > | 角色对象列表 |
分级管理员角色列表(分页条件查询)数据
简述:
- 分级管理员角色列表(分页条件查询)数据
请求URL:
- http://ip:port/ibps/platform/v3/role/queryWithGrade
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
TODO
返回示例:
TODO
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | APIPageList< PartyRolePo > | 角色对象列表 |
构建角色树数据
简述:
- 构建角色树数据
请求URL:
- http://ip:port/ibps/platform/v3/role/queryWithSys
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
{
"parameters": [],
"requestPage": {
"pageNo": 1,
"limit": 20
},
"sorts": []
}
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": [
{
"pk": "",
"name": "所有菜单角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": 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,
"dbtype": 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,
"dbtype": 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,
"dbtype": 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,
"dbtype": 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": "信息管理角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "466555926271229952",
"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,
"dbtype": null,
"id": "466555953945247744",
"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,
"dbtype": null,
"id": "466555980948176896",
"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,
"dbtype": null,
"id": "466556015127560192",
"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": "测试角色1",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "631504817973362688",
"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": "测试角色2",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "631504854686105600",
"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,
"dbtype": null,
"id": "631489583191687168",
"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,
"dbtype": null,
"id": "631489471967133696",
"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,
"dbtype": null,
"id": "631489693308944384",
"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,
"dbtype": null,
"id": "636244424573059072",
"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,
"dbtype": null,
"id": "640857826977120256",
"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,
"dbtype": null,
"id": "641324268541444096",
"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": "xxx酒色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "642030718829985792",
"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": "css",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "645929316542054400",
"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 > | 角色树对象列表 |
根据角色ID获取角色信息包含系统信息
简述:
- 根据角色ID获取角色信息包含系统信息
请求URL:
- http://ip:port/ibps/platform/v3/role/queryWithSysBySysId
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
{
"parameters": [
{
"key": "Q^ID_^SL",
"value": "466555768422793216"
}
],
"requestPage": {
"pageNo": 1,
"limit": 20
},
"sorts": []
}
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"dataResult": [
{
"pk": "",
"name": "所有菜单角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555768422793216",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "sycdjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
}
],
"pageResult": {
"limit": 20,
"page": 1,
"totalCount": 1,
"totalPages": 1
}
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< PartyRolePo > | 角色树对象列表 |
删除
简述:
- 删除角色
请求URL:
- http://ip:port/ibps/platform/v3/role/remove
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
roleIds | String[] | 是 | 角色id数组 |
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/role/remove?roleIds=646018051145203712
返回示例:
{
"state": 200,
"request": null,
"message": "删除角色成功",
"cause": "",
"variables": {},
"data": null
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
移除角色人员
简述:
- 移除角色人员
请求URL:
- http://ip:port/ibps/platform/v3/role/removeUser
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
roleId | String | 是 | 角色ID | ||
userIds | String[] | 是 | 用户ID数组 |
TODO 接口参数需要重构,改为body参数
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/role/removeUser?roleId=642030718829985792&userIds=642016708940267520
返回示例:
{
"state": 200,
"request": null,
"message": "角色人员移除成功",
"cause": "",
"variables": {},
"data": null
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
保存
简述:
- 保存角色信息
请求URL:
- http://ip:port/ibps/platform/v3/role/save
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
PartyRolePo对象属性:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
name | String | 是 | 名称 | ||
roleAlias | String | 是 | 角色别名 | ||
roleNote | String | 否 | 角色描述 | ||
subSystemId | String | 是 | 子系统Id |
请求参数示例:
{
"name": "csa",
"roleAlias": "csa",
"subSystemId": "266946423468851203",
"roleNote": ""
}
返回示例:
{
"state": 200,
"request": null,
"message": "保存角色成功",
"cause": "",
"variables": {
"id": "646027950235320320"
},
"data": null
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
获取组织或岗位的默认角色
简述:
- 根据传入用户id查询,获取关联角色信息包含系统信息
请求URL:
- http://ip:port/ibps/platform/v3/role/findWithSysByIds
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
orgId | String | 否 | 组织id | ||
positionId | String | 否 | 岗位id | ||
roleIds | String[] | 否 | 角色Id数组 |
TODO 接口参数需要重构,改为body参数
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/role/findWithSysByIds?orgId=''&positionId=''&roleIds=466555768422793216
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": [
{
"pk": "",
"name": "所有菜单角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555768422793216",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "sycdjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": "其他"
}
]
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< PartyRolePo > | 角色对象列表 |
根据用户ID获取关联角色信息包含系统信息
简述:
- 根据用户ID获取关联角色信息包含系统信息
请求URL:
- http://ip:port/ibps/platform/v3/role/findByUserId
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
userId | String | 是 | 用户id |
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/role/findByUserId?userId=626422189268140032
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": [
{
"pk": "",
"name": "所有菜单角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "466555768422793216",
"partyType": null,
"alias": "sycdjs",
"parentId": "266946423468851203",
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "sycdjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": "ibps",
"desc": null
}
]
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< DefaultPartyRolePo > | 默认角色对象列表 |
已分配角色列表
简述:
- 根据传入用户id查询,获取关联角色信息
请求URL:
- http://ip:port/ibps/platform/v3/role/findAssignedByUserId
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
userId | String | 是 | 用户id |
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/role/findAssignedByUserId?userId=626422189268140032
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": [
{
"pk": "",
"name": "所有菜单角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555768422793216",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "sycdjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": true,
"source": "自有"
}
]
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< PartyRolePo> | 角色对象列表 |
可分配角色列表
简述:
- 根据传入用户id查询,获取关联角色信息包含系统信息
请求URL:
- http://ip:port/ibps/platform/v3/role/findCanBeAssignedByUserId
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
userId | String | 是 | 用户id |
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/role/findCanBeAssignedByUserId?userId=626422189268140032
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": [
{
"pk": "",
"name": "所有菜单角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555768422793216",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "sycdjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
}
]
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< PartyRolePo> | 角色对象列表 |
查询角色
简述:
- 根据传入id查询,并返回角色信息,对应子系统ID在变量systemId中
请求URL:
- http://ip:port/ibps/platform/v3/role/get
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
roleId | String | 是 | 角色id |
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/role/get?roleId=466555768422793216
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {
"systemId": "266946423468851203"
},
"data": {
"pk": "",
"name": "所有菜单角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555768422793216",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "sycdjs",
"subSystemId": null,
"subSystemName": null,
"subSystemAlias": null,
"canDelete": false,
"source": null
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< PartyRolePo> | 角色对象列表 |
查询角色
简述:
- 根据传入别名查询,并返回角色信息,对应子系统ID在变量systemId中
请求URL:
- http://ip:port/ibps/platform/v3/role/getByAlias
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
roleAlias | String | 是 | 角色别名 |
- Body:
暂无|
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/role/getByAlias?roleAlias=sycdjs
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {
"systemId": "266946423468851203"
},
"data": {
"pk": "",
"name": "所有菜单角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555768422793216",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "sycdjs",
"subSystemId": null,
"subSystemName": null,
"subSystemAlias": null,
"canDelete": false,
"source": null
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< PartyRolePo> | 角色对象列表 |
根据角色ID查询角色-子系统数据(注释掉了)
简述:
- 根据角色ID查询角色-子系统数据
请求URL:
- http://ip:port/ibps/platform/v3/role/getRoleSystem
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
roleId | String | 是 | 角色id |
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/role/getRoleSystem?roleId=466555768422793216
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"pk": "",
"name": null,
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "466555768477319168",
"systemId": "266946423468851203",
"roleId": "466555768422793216"
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | RoleSystemPo | 角色与子系统信息 |
查询角色树
简述:
- 查询角色树 since 3.3.0
请求URL:
- http://ip:port/ibps/platform/v3/role/findTreeData
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 | ||
type | String | 否 | 类别(0:默认不传查询所有,1:查询所有,2:所在角色,3:指定角色,配合partyId使用) | request.parameters参数 | |
partyId | String | 否 | 角色ID(111,222) | request.parameters参数 |
请求参数示例:
{
"parameters": [],
"requestPage": {
"pageNo": 1,
"limit": 20
},
"sorts": []
}
返回示例:
{
"state": 200,
"request": null,
"message": "获取角色列表成功!",
"cause": "",
"variables": {},
"data": {
"dataResult": [
{
"pk": "",
"name": "所有菜单角色",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": "-999",
"dataStatus": null,
"dbtype": null,
"id": "466555768422793216",
"partyType": null,
"alias": null,
"parentId": null,
"path": null,
"depth": null,
"sn": null,
"roleNote": null,
"roleAlias": "sycdjs",
"subSystemId": "266946423468851203",
"subSystemName": "IBPS平台",
"subSystemAlias": null,
"canDelete": false,
"source": null
}
],
"pageResult": {
"limit": 20,
"page": 1,
"totalCount": 19,
"totalPages": 1
}
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | APIPageList< PartyRolePo > | 角色对象列表 |
备注
- [1] : APIRequest为动态查询请求对象,详情请移步全局请求格式