作者:管理员  历史版本:1  最后编辑:龚清  更新时间:2025-10-14 18:31
查询权限配置信息
简述:
- 根据传入id查询,并返回权限配置信息
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/config/get
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| rightsConfigId | String | 是 | 权限配置id | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/config/get?rightsConfigId=286814138233389356返回示例:
{
    "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": "286814138233389356",
        "key": "bpmAuth",
        "entityType": "ibps_bpm_auths",
        "entityIdKey": null,
        "ownRights": null
    }
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | RightsConfigPo | 权限配置 | 
查询权限枚举信息(JSONArray)
简述:
- 查询权限枚举信息(JSONArray)
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/config/getRightsTypeJSON
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
暂无
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/config/getRightsTypeJSON返回示例:
{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": [
        {
            "key": "none",
            "label": "无"
        },
        {
            "key": "all",
            "label": "所有人"
        },
        {
            "key": "employee",
            "label": "用户"
        },
        {
            "key": "role",
            "label": "角色"
        },
        {
            "key": "org",
            "label": "组织(本层级)"
        },
        {
            "key": "orgSub",
            "label": "组织(包含子组织)"
        },
        {
            "key": "position",
            "label": "岗位"
        }
    ]
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | JSONArray | JSON数组 | 
查询权限枚举信息(list)
简述:
- 查询权限枚举信息(list)
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/config/getRightsTypeList
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
暂无
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/config/getRightsTypeList返回示例:
{
    "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 > | 权限类型集合 | 
权限配置列表(分页条件查询)数据
简述:
- 权限配置列表(分页条件查询)数据
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/config/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": "我试试",
                "ip": null,
                "createBy": null,
                "createTime": null,
                "updateBy": null,
                "updateTime": null,
                "tenantId": null,
                "dataStatus": null,
                "dbtype": null,
                "id": "667075022145191936",
                "key": "wss",
                "entityType": "ibps_wss_eryi",
                "entityIdKey": "",
                "ownRights": "employee"
            },
            {
                "pk": "",
                "name": "流程分管授权",
                "ip": null,
                "createBy": null,
                "createTime": null,
                "updateBy": null,
                "updateTime": null,
                "tenantId": "-999",
                "dataStatus": null,
                "dbtype": null,
                "id": "286814138233389356",
                "key": "bpmAuth",
                "entityType": "ibps_bpm_auths",
                "entityIdKey": null,
                "ownRights": null
            },
            {
                "pk": "",
                "name": "表单权限",
                "ip": null,
                "createBy": null,
                "createTime": null,
                "updateBy": null,
                "updateTime": null,
                "tenantId": "-999",
                "dataStatus": null,
                "dbtype": null,
                "id": "286814138233389355",
                "key": "formRights",
                "entityType": "ibps_form_rights",
                "entityIdKey": null,
                "ownRights": null
            },
            {
                "pk": "",
                "name": "桌面布局管理权限",
                "ip": null,
                "createBy": null,
                "createTime": null,
                "updateBy": null,
                "updateTime": null,
                "tenantId": "-999",
                "dataStatus": null,
                "dbtype": null,
                "id": "286814138233389354",
                "key": "desktopManage",
                "entityType": "ibps_desktop_manage",
                "entityIdKey": null,
                "ownRights": null
            },
            {
                "pk": "",
                "name": "桌面栏目权限",
                "ip": null,
                "createBy": null,
                "createTime": null,
                "updateBy": null,
                "updateTime": null,
                "tenantId": "-999",
                "dataStatus": null,
                "dbtype": null,
                "id": "286814138233389353",
                "key": "desktopColumn",
                "entityType": "ibps_desktop_column",
                "entityIdKey": null,
                "ownRights": null
            }
        ],
        "pageResult": {
            "limit": 10,
            "page": 1,
            "totalCount": 5,
            "totalPages": 1
        }
    }
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | APIPageList< RightsConfigPo > | 权限配置集合 | 
删除权限配置记录
简述:
- 删除权限配置记录
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/config/remove
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| rightConfigIds | String[] | 是 | 权限配置id数组 | 
- Body:
 
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/rights/config/remove?rightConfigIds=667075022145191936返回示例:
{
    "state": 200,
    "request": null,
    "message": "删除权限配置成功",
    "cause": "",
    "variables": {},
    "data": null
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
保存权限配置信息
简述:
- 保存权限配置信息
 
请求URL:
- http://ip:port/ibps/platform/v3/rights/config/save
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
暂无
- Body:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 
|---|---|---|---|---|
| id | string | 否 | 主键 | |
| name | string | 是 | 类型名称 | |
| key | string | 是 | 类型KEY | |
| entityType | string | 是 | 实体类型 | |
| entityIdKey | string | 否 | ID_ | 实体ID的KEY,默认是ID_ | 
| ownRights | string | 是 | 拥有的权限 | 
请求参数示例:
{
    "name": "我试试",
    "key": "wss",
    "entityType": "ibps_wss_eryi",
    "entityIdKey": "",
    "ownRights": "employee"
}返回示例:
{
    "state": 200,
    "request": null,
    "message": "保存权限配置成功",
    "cause": "",
    "variables": {
        "id": "667078632270725120"
    },
    "data": null
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
备注
- [1] : APIRequest为动态查询请求对象,详情请移步全局请求格式