文档首页/ ISDP/ API参考/ API接口/ 权限角色/ 查询用户角色(API名称:findRolePage)
更新时间:2024-07-22 GMT+08:00
分享

查询用户角色(API名称:findRolePage)

功能介绍

查询用户角色

相关接口

接口名称

调用说明

获取Token

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

URL

请求方式

HTTPS地址

服务架构

消息体类型

POST

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

OpenAPI

application/json

请求头

KEY

VALUE

是否必填

描述

Content-Type

application/json

Authorization

bearer ${access_token}

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

请求参数

字段名

数据类型

是否必填

字段名称

page. start

Int

分页

page.count

Int

数量,最大支持200

startTime

String

开始时间,时间格式:yyyy-MM-dd HH:mm:ss

endTime

String

结束时间,时间格式:yyyy-MM-dd HH:mm:ss

响应参数

字段名

数据类型

字段名称

totalCount

Int

总数

roleId

Long

角色ID

roleNo

String

角色编码

roleName

String

角色名称

deleteFlag

int

删除标识(0 非删除,1 删除)

请求示例

{
    "page": {
        "start": 0,
        "count": 10
    },
    "startTime": "2021-03-01 01:30:00",
    "endTime": "2021-03-09 12:30:00"
}

响应示例

{
    "data": [
        {
            "roleId": 4414,
            "roleNo": "A",
            "roleName": "A",
            "deleteFlag": 0
        },
        {
            "roleId": 2820,
            "roleNo": "9934.113075406014",
            "roleName": "9934.113075406014",
            "deleteFlag": 1
        },
        {
            "roleId": 2828,
            "roleNo": "9835.16944144669",
            "roleName": "9835.16944144669",
            "deleteFlag": 1
        },
        {
            "roleId": 2829,
            "roleNo": "9850.819576871194",
            "roleName": "9850.819576871194",
            "deleteFlag": 1
        },
        {
            "roleId": 2850,
            "roleNo": "9907.835090073238",
            "roleName": "9907.835090073238",
            "deleteFlag": 1
        },
        {
            "roleId": 4412,
            "roleNo": "9949.369760558333",
            "roleName": "9949.369760558333",
            "deleteFlag": 1
        },
        {
            "roleId": 4685,
            "roleNo": "9972.24808047981",
            "roleName": "9972.24808047981",
            "deleteFlag": 1
        },
        {
            "roleId": 4432,
            "roleNo": "9809.066300582665",
            "roleName": "9809.066300582665",
            "deleteFlag": 1
        },
        {
            "roleId": 2682,
            "roleNo": "9956.164084001497",
            "roleName": "9956.164084001497",
            "deleteFlag": 1
        },
        {
            "roleId": 4248,
            "roleNo": "9858.55223296242",
            "roleName": "9858.55223296242",
            "deleteFlag": 1
        }
    ],
    "pos": 0,
    "totalCount": 369,
    "entityName": "Role"
}

相关文档