文档首页> ISDP> API参考> API接口> 权限角色> 查询角色列表分页(API名称:findPagedRoleList)
更新时间:2024-01-18 GMT+08:00
分享

查询角色列表分页(API名称:findPagedRoleList)

功能介绍

查询角色列表分页

相关接口

接口名称

调用说明

获取Token

调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。

URL

请求方式

HTTPS地址

服务架构

消息体类型

POST

https://isdp+域名/openapi/v1/role/findPagedRoleList

OpenAPI

application/json

请求头

KEY

VALUE

是否必填

描述

Content-Type

application/json

Authorization

bearer ${access_token}

bearer +“ ”+5.2.1中获取的access_token的值

请求参数

参数

类型

是否必填

描述

role. roleId

Integer

角色Id

role. roleNo

String

角色编码

role. roleName

String

角色名称

role. roleType

Integer

角色类型

page. start

Integer

分页查询起始位置

role. status

String

角色状态

响应参数

参数

类型

描述

pos

Integer

查询数据的起始位置

total_count

Integer

查询结果数据总数

entityName

String

实体名

data

Object

响应结果内容,包含所需的字段

totalCount

Integer

查询结果数据总数

data出参:

参数

类型

描述

id

Integer

角色id

roleDesc

String

角色描述

roleId

Integer

角色id

value

String

  

roleName

String

角色名称

roleNo

String

角色编码

roleType

Integer

角色状态

orderNum

Integer

  

请求示例

{
    "role": {
        "roleId": -998
    },
    "page": {
        "start": 0,
        "count": 1
    }
}

响应示例

{
    "data": [
        {
            "id": -998,
            "roleId": -998,
            "value": "Admin",
            "roleName": "Admin",
            "roleNo": "Admin",
            "roleDesc": "Admin",
            "roleType": 1,
            "orderNum": 80
        }
    ],
    "pos": 0,
    "total_count": 1,
    "entityName": null,
    "totalCount": 1
}

分享:

    相关文档

    相关产品