获取角色列表
POST
/api/v1/system/role/info/index
iThings-apisvr/系统管理new/角色管理
请求参数
Header 参数
iThings-token
string
可选
示例值:
{{iThings-token}}
iThings-project-id
string
可选
示例值:
1764806234122309632{{iThings-token}}
iThings-app-code
string
可选
示例值:
{{iThings-app-code}}
iThings-user-role
string
可选
示例值:
1
Accept-Language
string
可选
默认值:
en
iThings-tenant-code
string
可选
Body 参数application/json
page
object
可选
page
integer
页码
size
integer
每页大小
name
string
按名称查找角色
status
integer
按状态查找角色
ids
array[integer]
角色的id列表
示例
{
"page": {
"page": 0,
"size": 0
},
"name": "string",
"status": 0,
"ids": [
0
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/system/role/info/index' \
--header 'iThings-token: {{iThings-token}}' \
--header 'iThings-token;' \
--header 'iThings-project-id: 1764806234122309632{{iThings-token}}' \
--header 'iThings-project-id;' \
--header 'iThings-app-code: {{iThings-app-code}}' \
--header 'iThings-app-code;' \
--header 'iThings-user-role: 1' \
--header 'iThings-user-role;' \
--header 'Accept-Language: en' \
--header 'iThings-tenant-code;' \
--header 'Content-Type: application/json' \
--data-raw '{
"page": {
"page": 0,
"size": 0
},
"name": "string",
"status": 0,
"ids": [
0
]
}'
返回响应
🟢200成功
application/json
Body
code
integer | null
返回code
msg
string
返回消息
默认值:
success
data
object
必需
list
array[object (角色信息) {5}]
必需
total
integer
必需
示例
{
"total": 2,
"data": [
{
"id": 1,
"name": "政候眼己易化",
"remark": "dolore labore elit mollit ea",
"createdTime": "2020-03-18 18:26:43",
"status": 37,
"roleMenuID": [
63,
30,
65,
65,
43
]
},
{
"id": 2,
"name": "科心任",
"remark": "magna officia qui",
"createdTime": "1988-09-27 01:39:13",
"status": 81,
"roleMenuID": [
36,
29,
10,
47
]
}
]
}

扫码加入 iThings微信交流群

