作者:管理员  历史版本:1  最后编辑:龚清  更新时间:2025-10-14 18:31
构建权限ID集合
简述:
- 构建权限ID集合
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/def/buildCrossIds/entityType/userId
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| entityType | String | 是 | 权限配置类型 | ||
| userId | String | 是 | 用户ID | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/def/buildCrossIds/entityType/userId?entityType=bpmAuth&userId=1返回示例:
{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": [
        "657595355247935488",
        "666666078067228672"
    ]
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | List< Object > | 权限ID集合 | 
构建权限sql
简述:
- 构建权限sql
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/def/buildSqls/entityType/userId
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| entityType | String | 是 | 权限配置类型 | ||
| userId | String | 是 | 用户ID | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/def/buildSqls/entityType/userId?entityType=bpmAuth&userId=1返回示例:
{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": "\tSELECT RIG.ENTITY_ID_ FROM   IBPS_RIGHTS_DEF RIG  where RIG.TYPE_= 'none' AND RIG.ENTITY_TYPE_= 'bpmAuth' union \tSELECT RIG.ENTITY_ID_ FROM   IBPS_RIGHTS_DEF RIG  where RIG.TYPE_= 'all' AND RIG.ENTITY_TYPE_= 'bpmAuth' union \tSELECT RIG.ENTITY_ID_ FROM   IBPS_RIGHTS_DEF RIG  where RIG.TYPE_= 'employee' AND RIG.ENTITY_TYPE_= 'bpmAuth'\tAND RIG.RIGHTS_ID_ IN  ('666952698582532096') union \tSELECT RIG.ENTITY_ID_ FROM   IBPS_RIGHTS_DEF RIG  where RIG.TYPE_= 'role' AND RIG.ENTITY_TYPE_= 'bpmAuth'\tAND RIG.RIGHTS_ID_ IN  ('656811271668105216','466555768422793216') union \tSELECT RIG.ENTITY_ID_ FROM   IBPS_RIGHTS_DEF RIG  where RIG.TYPE_= 'org' AND RIG.ENTITY_TYPE_= 'bpmAuth'\tAND RIG.RIGHTS_ID_ IN  ('666710757743788032') union \tSELECT RIG.ENTITY_ID_ FROM   IBPS_RIGHTS_DEF RIG  where RIG.TYPE_= 'orgSub' AND RIG.ENTITY_TYPE_= 'bpmAuth'\tAND RIG.RIGHTS_ID_ IN  ('666710757743788032') union \tSELECT RIG.ENTITY_ID_ FROM   IBPS_RIGHTS_DEF RIG  where RIG.TYPE_= 'position' AND RIG.ENTITY_TYPE_= 'bpmAuth'\tAND RIG.RIGHTS_ID_ IN  ('666711164087959552')"
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | String | 权限SQL | 
根据类型和id获取权限配置数据
简述:
- 根据类型和id获取权限配置数据
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/def/findByEntityTypeId
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| entityId | String | 是 | 权限配置Id | ||
| entityType | String | 是 | 权限配置类型 | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/def/findByEntityTypeId?entityId=664143484076163072&entityType=bpmAuth返回示例:
{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": [
        {
            "pk": "",
            "name": null,
            "ip": null,
            "createBy": null,
            "createTime": "2020-01-07 16:29:06",
            "updateBy": null,
            "updateTime": null,
            "tenantId": null,
            "dataStatus": null,
            "dbtype": null,
            "id": "664143485376397312",
            "entityType": "bpmAuth",
            "entityId": "664143484076163072",
            "type": "employee",
            "rightsId": "654621442352087040",
            "rightsName": "姗姗"
        }
    ]
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | String | 权限配置数据 | 
通过key获取权限类型
简述:
- 通过key获取权限类型
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/def/findRightsTypeByKey
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| entityType | String | 是 | 权限配置类型 | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/def/findRightsTypeByKey?entityType=bpmAuth返回示例:
{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": [
        {
            "key": "none",
            "dimkey": "none",
            "label": "无"
        },
        {
            "key": "all",
            "dimkey": "all",
            "label": "所有人"
        },
        {
            "key": "employee",
            "dimkey": "employee",
            "label": "用户"
        },
        {
            "key": "role",
            "dimkey": "role",
            "label": "角色"
        },
        {
            "key": "org",
            "dimkey": "org",
            "label": "组织(本层级)"
        },
        {
            "key": "orgSub",
            "dimkey": "org",
            "label": "组织(包含子组织)"
        },
        {
            "key": "position",
            "dimkey": "position",
            "label": "岗位"
        }
    ]
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | List< RightsType > | 权限类型集合 | 
查询
简述:
- 根据传入id查询,并返回权限定义信息
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/def/get
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| rightsDefId | String | 是 | 权限定义id | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/def/get?rightsDefId=657659972682776577返回示例:
{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": {
        "pk": "",
        "name": null,
        "ip": null,
        "createBy": null,
        "createTime": "2019-12-20 19:05:56",
        "updateBy": null,
        "updateTime": null,
        "tenantId": null,
        "dataStatus": null,
        "dbtype": null,
        "id": "657659972682776577",
        "entityType": "bpmAuth",
        "entityId": "657659972011687936",
        "type": "position",
        "rightsId": "656910591587254272",
        "rightsName": "分管流程"
    }
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | RightsDefPo | 权限定义对象 | 
权限定义列表(分页条件查询)数据
简述:
- 权限定义列表(分页条件查询)数据
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/def/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": null,
                "ip": null,
                "createBy": null,
                "createTime": "2020-01-14 15:35:10",
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "666666626178875392",
                "entityType": "bpmAuth",
                "entityId": "656549045082259456",
                "type": "org",
                "rightsId": "655071065944358912",
                "rightsName": "测试部门"
            },
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": "2020-01-14 15:32:59",
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "666666079094833152",
                "entityType": "bpmAuth",
                "entityId": "666666078067228672",
                "type": "all",
                "rightsId": "",
                "rightsName": ""
            },
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": "2020-01-07 16:29:06",
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "664143485376397312",
                "entityType": "bpmAuth",
                "entityId": "664143484076163072",
                "type": "employee",
                "rightsId": "654621442352087040",
                "rightsName": "姗姗"
            },
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": "2019-12-20 19:05:56",
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "657659972682776577",
                "entityType": "bpmAuth",
                "entityId": "657659972011687936",
                "type": "position",
                "rightsId": "656910591587254272",
                "rightsName": "分管流程"
            },
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": "2019-12-20 19:05:56",
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "657659972682776576",
                "entityType": "bpmAuth",
                "entityId": "657659972011687936",
                "type": "org",
                "rightsId": "655071134160519168",
                "rightsName": "财务部门"
            },
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": "2019-12-20 14:49:11",
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "657595356527198208",
                "entityType": "bpmAuth",
                "entityId": "657595355247935488",
                "type": "all",
                "rightsId": "",
                "rightsName": ""
            },
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": "2019-12-19 14:51:39",
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "657233591943561223",
                "entityType": "bpmAuth",
                "entityId": "655078048655212544",
                "type": "employee",
                "rightsId": "655077249782906880",
                "rightsName": "chao5"
            },
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": "2019-12-19 14:51:39",
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "657233591943561222",
                "entityType": "bpmAuth",
                "entityId": "655078048655212544",
                "type": "employee",
                "rightsId": "655075052584173568",
                "rightsName": "chao4"
            },
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": "2019-12-19 14:51:39",
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "657233591943561221",
                "entityType": "bpmAuth",
                "entityId": "655078048655212544",
                "type": "employee",
                "rightsId": "655074898657411072",
                "rightsName": "chao3"
            },
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": "2019-12-19 14:51:39",
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "657233591943561220",
                "entityType": "bpmAuth",
                "entityId": "655078048655212544",
                "type": "employee",
                "rightsId": "655074689797849088",
                "rightsName": "chao2"
            }
        ],
        "pageResult": {
            "limit": 10,
            "page": 1,
            "totalCount": 24,
            "totalPages": 3
        }
    }
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | APIPageList< RightsDefPo > | 权限定义对象集合 | 
删除
简述:
- 删除权限定义记录
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/def/remove
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| rightDefIds | String[] | 是 | 权限定义id数组 | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/def/remove?rightDefIds=657233591943561218返回示例:
{
    "state": 200,
    "request": null,
    "message": "删除权限定义成功",
    "cause": "",
    "variables": {},
    "data": null
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
删除权限数据
简述:
- 删除权限数据
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/def/removeByTypeIds
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| entityType | String | 是 | 权限实体类型 | ||
| entityIds | String[] | 否 | 权限实体ID | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/def/removeByTypeIds?entityIds=655078048655212544&entityType=bpmAuth返回示例:
{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": null
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
权限重置
简述:
- 权限重置
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/def/removeRights
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| entityId | String | 是 | 参与者Id | ||
| entityType | String | 是 | 权限配置类型 | ||
| rightsIds | String[] | 是 | 权限id数组 | ||
| entityType | String | 是 | 权限配置类型 | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/def/removeRights?entityId=667031221544419328&entityType=bpmAuth&rightsIds=286814138233389356&rightsType=employee返回示例:
// TODO
{
    "state": 400,
    "request": null,
    "message": "",
    "cause": "HV000030: No validator could be found for type: class java.lang.String[].",
    "variables": {},
    "data": null
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
保存权限数据
简述:
- 保存权限数据
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/def/save/vo
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
暂无
- Body:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 
|---|---|---|---|---|
| entityId | string | 否 | 实体id | |
| entityType | string | 否 | 权限类型 | |
| rightsIds | string | 否 | 权限id | |
| rightsType | string | 否 | 权限控制类型 | |
| rights | string | 否 | 权限 | 
请求参数示例:
{
    "entityType": "bpmAuth",
    "entityId": "667031221544419328",
    "type": "employee",
    "rightsId": "654384477392338944"
}返回示例:
{
    "state": 200,
    "request": null,
    "message": "保存权限定义成功",
    "cause": "",
    "variables": {},
    "data": null
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
查找权限数据
简述:
- 查找权限数据
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/def/trans
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| entityType | String | 是 | 权限实体类型 | ||
| entityIds | String[] | 否 | 权限实体ID | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/def/trans?entityIds=655078048655212544&entityType=bpmAuth返回示例:
{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": {
        "655078048655212544": [
            {
                "pk": "",
                "name": null,
                "ip": null,
                "createBy": null,
                "createTime": "2020-01-15 15:40:17",
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "667030300773056512",
                "entityType": "bpmAuth",
                "entityId": "655078048655212544",
                "type": "employee",
                "rightsId": "666952698582532096",
                "rightsName": "测试IE"
            }
        ]
    }
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Map<String, List< RightsDefPo >> | 权限定义对象集合 | 
备注
- [1] : APIRequest为动态查询请求对象,详情请移步全局请求格式