获取用户角色信息列表
POST
/api/v1/system/user/role/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
userID
string
用户id
示例
{
"userID": "1740358057038188544"
}
示例代码
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/user/role/index' \
--header 'iThings-token: {{iThings-token}}' \
--header 'iThings-project-id: 1786838173980422144' \
--header 'iThings-app-code: {{iThings-app-code}}' \
--header 'iThings-user-role: 1' \
--header 'Accept-Language: en' \
--header 'iThings-tenant-code;' \
--header 'Content-Type: application/json' \
--data-raw '{
"userID": "1740358057038188544"
}'
返回响应
🟢200成功
application/json
Body
code
integer
错误码
msg
string
错误信息
data
object
必需
total
integer
必需
list
array [object {5}]
必需
示例
{
"code": 200,
"msg": "success",
"data": {
"uid": "1763467214783807488",
"userName": "LudengAdmin",
"email": "",
"phone": "",
"wechat": "",
"lastIP": "",
"regIP": "",
"nickName": "ludeng",
"city": "",
"country": "",
"province": "",
"language": "",
"headImgUrl": "",
"createdTime": "1683382820",
"role": 5,
"sex": 1,
"isAllData": 1
}
}

扫码加入 iThings微信交流群

