- system
- access
- app
- common
- data
- dict
- log
- module
- ops
- role
- tenant
- user
- info
- role
- self
- dept
- notify
- area
- project
- slot
- dept
- job
- open
- data
获取用户授权树
POST
/api/v1/system/user/self/access/tree
system/user/selfsystemUserSelf
请求参数
Header 参数
Ithings-Project-Id
string
可选
默认值:
{{Ithings-Project-Id}}
Ithings-Token
string
可选
默认值:
{{iThings-token}}
app-code
string
可选
默认值:
{{appCode}}
device-id
string
可选
示例代码
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/self/access/tree' \
--header 'Ithings-Project-Id: {{Ithings-Project-Id}}' \
--header 'Ithings-Token: {{iThings-token}}' \
--header 'app-code: {{appCode}}' \
--header 'device-id;'
返回响应
🟢200成功
application/json
Body
code
integer
返回code
默认值:
200
msg
string
返回的消息
data
object (AccessTreeResp)
可选
list
array[object (AccessModuleInfo) {4}]
接口列表数据
示例
{
"code": "200",
"msg": "string",
"data": {
"list": [
{
"id": "string",
"code": "string",
"name": "string",
"children": [
{
"id": "string",
"code": "string",
"name": "string",
"children": [
{
"id": 0,
"code": "string",
"module": "string",
"group": "string",
"name": "string",
"isNeedAuth": 1,
"authType": 3,
"desc": "string",
"apis": [
{
"id": 0,
"accessCode": "string",
"route": "string",
"method": "string",
"name": "string",
"businessType": 1,
"recordLogMode": 3,
"desc": "string"
}
]
}
]
}
]
}
]
}
}
修改于 2025-03-25 09:32:22