列表
开发中
GET
http://localhost:8000/v1/permissions
请求参数
Header 参数
X-Visitor-ID
string
可选
默认值:
{{fingerprint}}
Authorization
string
可选
默认值:
{{user_token}}
User-Agent
string
可选
默认值:
{{user_agent}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8000/v1/permissions' \
--header 'X-Visitor-ID: f4c74f11d41a6ba06fcedbbb42059b78' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE3NTI2NTc4NDksImlhdCI6MTc1MDA2NTg0OX0.hB7IjEj4RQg4LdKe78zyUVpWQWVQ0HgJjjqXdm7gGqc' \
--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
array [object {13}]
必需
id
integer
必需
createdAt
string
必需
updatedAt
string
必需
name
string
必需
type
object
必需
parentID
integer
必需
sort
integer
必需
path
string
必需
isFrame
object
必需
status
object
必需
perms
string
必需
icon
string
必需
remark
string
必需
message
string
必需
示例
{
"code": 200,
"data": [
{
"id": 1,
"createdAt": "2024-11-19T07:51:32.634158Z",
"updatedAt": "2024-11-19T07:51:32.634158Z",
"name": "目录",
"type": {
"id": 14,
"label": "目录",
"value": "F"
},
"parentID": 0,
"sort": 1,
"path": "",
"isFrame": {
"id": 2,
"label": "不活跃/禁用",
"value": "inactive"
},
"status": {
"id": 1,
"label": "活跃/启用",
"value": "active"
},
"perms": "目录",
"icon": "目录",
"remark": "目录"
},
{
"id": 2,
"createdAt": "2024-11-20T08:43:02.329602Z",
"updatedAt": "2024-11-20T08:43:02.329602Z",
"name": "目录",
"type": {
"id": 14,
"label": "目录",
"value": "F"
},
"parentID": 0,
"sort": 1,
"path": "",
"isFrame": {
"id": 2,
"label": "不活跃/禁用",
"value": "inactive"
},
"status": {
"id": 1,
"label": "活跃/启用",
"value": "active"
},
"perms": "目录",
"icon": "目录",
"remark": "目录"
},
{
"id": 3,
"createdAt": "2024-11-20T08:43:28.462444Z",
"updatedAt": "2024-11-20T08:43:28.462444Z",
"name": "按钮",
"type": {
"id": 15,
"label": "按钮",
"value": "B"
},
"parentID": 0,
"sort": 1,
"path": "",
"isFrame": {
"id": 2,
"label": "不活跃/禁用",
"value": "inactive"
},
"status": {
"id": 1,
"label": "活跃/启用",
"value": "active"
},
"perms": "按钮",
"icon": "",
"remark": "按钮"
},
{
"id": 4,
"createdAt": "2024-11-20T08:49:24.510802Z",
"updatedAt": "2024-11-20T08:49:24.510802Z",
"name": "菜单",
"type": {
"id": 13,
"label": "菜单",
"value": "M"
},
"parentID": 2,
"sort": 1,
"path": "菜单",
"isFrame": {
"id": 2,
"label": "不活跃/禁用",
"value": "inactive"
},
"status": {
"id": 1,
"label": "活跃/启用",
"value": "active"
},
"perms": "菜单",
"icon": "",
"remark": "asdfasd"
},
{
"id": 5,
"createdAt": "2024-11-21T06:18:49.839029Z",
"updatedAt": "2024-11-21T06:18:49.839029Z",
"name": "菜单测试",
"type": {
"id": 13,
"label": "菜单",
"value": "M"
},
"parentID": 0,
"sort": 1,
"path": "/menu",
"isFrame": {
"id": 2,
"label": "不活跃/禁用",
"value": "inactive"
},
"status": {
"id": 1,
"label": "活跃/启用",
"value": "active"
},
"perms": "菜单测试",
"icon": "",
"remark": "测试"
},
{
"id": 6,
"createdAt": "2024-11-21T06:19:33.657404Z",
"updatedAt": "2024-11-21T06:19:33.657404Z",
"name": "阿斯顿发",
"type": {
"id": 13,
"label": "菜单",
"value": "M"
},
"parentID": 0,
"sort": 1,
"path": "阿斯顿发",
"isFrame": {
"id": 2,
"label": "不活跃/禁用",
"value": "inactive"
},
"status": {
"id": 1,
"label": "活跃/启用",
"value": "active"
},
"perms": "asdf",
"icon": "",
"remark": "阿斯顿发水淀粉"
},
{
"id": 7,
"createdAt": "2024-11-21T06:22:25.348372Z",
"updatedAt": "2024-11-21T06:22:25.348372Z",
"name": "阿斯顿发水淀粉",
"type": {
"id": 14,
"label": "目录",
"value": "F"
},
"parentID": 0,
"sort": 1,
"path": "",
"isFrame": {
"id": 2,
"label": "不活跃/禁用",
"value": "inactive"
},
"status": {
"id": 1,
"label": "活跃/启用",
"value": "active"
},
"perms": "啊但是发水淀粉",
"icon": "阿斯顿发的顺丰",
"remark": ""
}
],
"message": "成功"
}
修改于 2024-11-21 10:24:05