vuetify-admin-serve
  1. 权限
vuetify-admin-serve
  • 认证
    • 登录
      POST
    • 验证码
      GET
    • 切换角色
      POST
    • 退出登录
      POST
  • 用户
    • 用户详情
      GET
    • 用户列表-分页
      GET
    • 新增用户
      POST
    • 删除用户
      DELETE
    • 修改用户
      PATCH
    • 重置用户密码
      PATCH
  • 权限
    • 角色权限树-by token
      GET
    • 权限树-菜单
      GET
    • 权限树-all
      GET
    • 新增权限
      POST
    • 删除权限
      DELETE
    • 修改权限
      PATCH
  • 角色
    • 新增角色
      POST
    • 角色列表-分页
      GET
    • 删除角色
      DELETE
    • 角色列表-all
      GET
    • 修改角色
      PATCH
    • 取消分配角色-批量
      PATCH
    • 分配角色-批量
      PATCH
  • 测试
    • 添加数据
      POST
    • 所有
      GET
    • 修改
      PATCH
  1. 权限

权限树-菜单

GET
/permission/menu/tree

请求参数

Header 参数
Authorization
string 
可选
示例值:
{{jwt}}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/permission/menu/tree' \
--header 'Authorization: {{jwt}}' \
--header 'Authorization;'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
message
string 
必需
data
array [object {17}] 
必需
id
integer 
必需
name
string 
必需
code
string 
必需
type
string 
必需
parentId
null 
必需
path
string 
必需
redirect
string 
必需
icon
string 
必需
component
string 
必需
layout
null 
必需
keepAlive
null 
必需
method
null 
必需
description
null 
必需
show
boolean 
必需
enable
boolean 
必需
order
null 
必需
children
array [object {17}] 
必需
originUrl
string 
必需
示例
{
  "code": 0,
  "message": "OK",
  "data": [
    {
      "id": 21,
      "name": "Dashboard",
      "code": "Dashboard",
      "type": "",
      "parentId": null,
      "path": "/",
      "redirect": "/dashboard/smart-house",
      "icon": "mdi-gauge",
      "component": "/src/layout/index.vue",
      "layout": null,
      "keepAlive": null,
      "method": null,
      "description": null,
      "show": true,
      "enable": true,
      "order": null,
      "children": [
        {
          "id": 24,
          "name": "Tesla Model S",
          "code": "teslaModelS",
          "type": "",
          "parentId": 21,
          "path": "/dashboard/tesla-model-s",
          "redirect": "",
          "icon": "mdi-alpha-t",
          "component": "/src/views/dashboard/teslaModelS.vue",
          "layout": null,
          "keepAlive": null,
          "method": null,
          "description": null,
          "show": true,
          "enable": true,
          "order": null
        },
        {
          "id": 25,
          "name": "Smart House",
          "code": "smartHouse",
          "type": "",
          "parentId": 21,
          "path": "/dashboard/smart-house",
          "redirect": "",
          "icon": "mdi-alpha-s",
          "component": "/src/views/dashboard/smartHouse.vue",
          "layout": null,
          "keepAlive": null,
          "method": null,
          "description": null,
          "show": true,
          "enable": true,
          "order": null
        }
      ]
    },
    {
      "id": 28,
      "name": "Componets",
      "code": "componets",
      "type": "",
      "parentId": null,
      "path": "/componets",
      "redirect": "/componets/table",
      "icon": "mdi-cube-scan",
      "component": "/src/layout/index.vue",
      "layout": null,
      "keepAlive": null,
      "method": null,
      "description": null,
      "show": true,
      "enable": true,
      "order": null,
      "children": [
        {
          "id": 29,
          "name": "Samples",
          "code": "samples",
          "type": "",
          "parentId": 28,
          "path": "/componets/samples",
          "redirect": "",
          "icon": "mdi-alpha-s",
          "component": "/src/views/componets/sample.vue",
          "layout": null,
          "keepAlive": null,
          "method": null,
          "description": null,
          "show": true,
          "enable": true,
          "order": null
        },
        {
          "id": 30,
          "name": "table",
          "code": "Table",
          "type": "",
          "parentId": 28,
          "path": "/componets/table",
          "redirect": "",
          "icon": "mdi-alpha-t",
          "component": "/src/views/componets/table.vue",
          "layout": null,
          "keepAlive": null,
          "method": null,
          "description": null,
          "show": true,
          "enable": true,
          "order": null
        },
        {
          "id": 31,
          "name": "calendar",
          "code": "Calendar",
          "type": "",
          "parentId": 28,
          "path": "/componets/calendar",
          "redirect": "",
          "icon": "mdi-alpha-c",
          "component": "/src/views/componets/calendar.vue",
          "layout": null,
          "keepAlive": null,
          "method": null,
          "description": null,
          "show": true,
          "enable": true,
          "order": null
        }
      ]
    },
    {
      "id": 32,
      "name": "Graphics",
      "code": "graphics",
      "type": "",
      "parentId": null,
      "path": "/graphics",
      "redirect": "/graphics/babylonjs",
      "icon": "mdi-image",
      "component": "/src/layout/index.vue",
      "layout": null,
      "keepAlive": null,
      "method": null,
      "description": null,
      "show": true,
      "enable": true,
      "order": null,
      "children": [
        {
          "id": 33,
          "name": "Three.js",
          "code": "three-js",
          "type": "",
          "parentId": 32,
          "path": "/graphics/three.js",
          "redirect": "",
          "icon": "mdi-alpha-t",
          "component": "/src/views/graphics/threeJs.vue",
          "layout": null,
          "keepAlive": null,
          "method": null,
          "description": null,
          "show": true,
          "enable": true,
          "order": null
        },
        {
          "id": 34,
          "name": "Pixi.js",
          "code": "Pixi-js",
          "type": "",
          "parentId": 32,
          "path": "/graphics/pixi-js",
          "redirect": "",
          "icon": "mdi-alpha-p",
          "component": "/src/views/graphics/pixiJs.vue",
          "layout": null,
          "keepAlive": null,
          "method": null,
          "description": null,
          "show": true,
          "enable": true,
          "order": null
        },
        {
          "id": 35,
          "name": "Babylon.js",
          "code": "babylon-js",
          "type": "",
          "parentId": 32,
          "path": "/graphics/babylon.js",
          "redirect": "",
          "icon": "mdi-alpha-b",
          "component": "/src/views/graphics/babylonjs.vue",
          "layout": null,
          "keepAlive": null,
          "method": null,
          "description": null,
          "show": true,
          "enable": true,
          "order": null
        }
      ]
    },
    {
      "id": 36,
      "name": "Editor",
      "code": "editor",
      "type": "",
      "parentId": null,
      "path": "/editor",
      "redirect": "/editor/oreo-editor",
      "icon": "mdi-view-module",
      "component": "/src/layout/index.vue",
      "layout": null,
      "keepAlive": null,
      "method": null,
      "description": null,
      "show": true,
      "enable": true,
      "order": null,
      "children": [
        {
          "id": 37,
          "name": "Oreo Editor",
          "code": "oreo-editor",
          "type": "",
          "parentId": 36,
          "path": "/editor/oreo-editor",
          "redirect": "",
          "icon": "mdi-alpha-o",
          "component": "/src/views/oreo-editor/index.vue",
          "layout": null,
          "keepAlive": null,
          "method": null,
          "description": null,
          "show": true,
          "enable": true,
          "order": null
        }
      ]
    },
    {
      "id": 38,
      "name": "Role-Based Access Control",
      "code": "RBAC",
      "type": "",
      "parentId": null,
      "path": "/role-based-access-control",
      "redirect": "/role-based-access-control/rbac",
      "icon": "mdi-account-supervisor-circle",
      "component": "/src/layout/index.vue",
      "layout": null,
      "keepAlive": null,
      "method": null,
      "description": null,
      "show": true,
      "enable": true,
      "order": null,
      "children": [
        {
          "id": 39,
          "name": "Roles",
          "code": "Roles",
          "type": "",
          "parentId": 38,
          "path": "/role-based-access-control/roles",
          "redirect": "",
          "icon": "mdi-alpha-r",
          "component": "/src/views/rbac/index.vue",
          "layout": null,
          "keepAlive": null,
          "method": null,
          "description": null,
          "show": true,
          "enable": true,
          "order": null
        },
        {
          "id": 40,
          "name": "Users",
          "code": "Users",
          "type": "",
          "parentId": 38,
          "path": "/role-based-access-control/user",
          "redirect": "",
          "icon": "mdi-alpha-u",
          "component": "/src/views/rbac/user.vue",
          "layout": null,
          "keepAlive": null,
          "method": null,
          "description": null,
          "show": true,
          "enable": true,
          "order": null
        }
      ]
    }
  ],
  "originUrl": "/role/permissions/tree"
}
上一页
角色权限树-by token
下一页
权限树-all
Built with