获取用户资源
POST
/api/v1/system/user/resource-read
iThings-apisvr/系统管理/用户管理
请求参数
Header 参数
iThings-token
string
可选
示例值:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVaWQiOiIxNzQwMzU4MDU3MDM4MTg4NTQ0IiwiZXhwIjoxNjgzNTQ4NDU5LCJpYXQiOjE2ODM1NDQ4NTksIlJvbGUiOjF9.ygQyxFx7AGtf7vcFJmE-xcElQUtwE23HN_0av02tSec
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
object {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/user/resource-read' \
--header 'iThings-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVaWQiOiIxNzQwMzU4MDU3MDM4MTg4NTQ0IiwiZXhwIjoxNjgzNTQ4NDU5LCJpYXQiOjE2ODM1NDQ4NTksIlJvbGUiOjF9.ygQyxFx7AGtf7vcFJmE-xcElQUtwE23HN_0av02tSec' \
--header '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 '{}'
返回响应
🟢200成功
application/json
Body
code
integer | null
返回code
msg
string
返回消息
默认值:
success
data
object
必需
menu
array [object {10}]
必需
info
object (UserInfo)
用户信息
projects
array[object (ProjectInfo) {10}]
必需
示例
{
"code": 0,
"msg": "success",
"data": {
"menu": [
{
"id": 95,
"name": "越信需与别现",
"parentID": 7,
"type": 28,
"path": "irure qui in cillum eiusmod",
"component": "sit sint nulla dolor",
"icon": "http://dummyimage.com/100x100",
"redirect": "cillum non adipisicing fugiat laborum",
"createTime": 270865330050,
"order": 62
},
{
"id": 37,
"name": "很影林化必",
"parentID": 38,
"type": 25,
"path": "sed aute",
"component": "laboris",
"icon": "http://dummyimage.com/100x100",
"redirect": "irure",
"createTime": 779515058196,
"order": 91
},
{
"id": 91,
"name": "离两使群",
"parentID": 69,
"type": 93,
"path": "Excepteur Duis aliqua",
"component": "consequat anim cupidatat exercitation",
"icon": "http://dummyimage.com/100x100",
"redirect": "labore mollit",
"createTime": 1086838489056,
"order": 18
},
{
"id": 72,
"name": "文该指存改",
"parentID": 84,
"type": 74,
"path": "incididunt ipsum sint fugiat",
"component": "esse incididunt cupidatat",
"icon": "http://dummyimage.com/100x100",
"redirect": "dolor in officia",
"createTime": 730370933714,
"order": 21
},
{
"id": 17,
"name": "器油马百不",
"parentID": 58,
"type": 43,
"path": "ea",
"component": "Excepteur do aute elit enim",
"icon": "http://dummyimage.com/100x100",
"redirect": "incididunt",
"createTime": 576325852588,
"order": 75
}
]
}
}

扫码加入 iThings微信交流群

