- 必须先读
- Ajax编程_V7.6大纲配套
- 数据可视化
- Vue基础
- Vue_大事件
- 黑马头条号
- 极客园_PC
- 极客园(黑马头条)_移动端
- 人资项目
- 小兔鲜电商
- 小程序基础
- 小程序项目
- layui_大事件
- 品优购电商后台
- 其他可用接口
获取-权限点列表
GET
/sys/permission
请求参数
Header 参数
Authorization
string
必需
示例值:
{{Vue2_HR_ACCESS_TOKEN}}
示例代码
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://ihrm.itheima.net/prod-api/sys/permission' \
--header 'Authorization: {{Vue2_HR_ACCESS_TOKEN}}'
返回响应
🟢200成功
application/json
Body
success
boolean
响应状态
code
integer
业务状态码
data
array [object {7}]
响应数据
id
string
权限点id
name
string
权限点名字
description
string
权限点描述
type
integer
权限点类型
code
string
权限点标识
pid
string
权限点父级id
enVisible
string
权限点开启状态
message
string
响应消息
示例
{
"success": true,
"code": 10000,
"data": [
{
"id": "604f7df5f900be1850edb152",
"name": "员工管理",
"description": "用户管理菜单",
"type": 1,
"code": "employees",
"pid": "0",
"enVisible": "1"
},
{
"id": "604f7e07f900be1850edb153",
"name": " 公司设置",
"description": "公司设置菜单",
"type": 1,
"code": "settings",
"pid": "0",
"enVisible": "1"
},
{
"id": "604f7e17f900be1850edb154",
"name": " 权限管理",
"description": "权限菜单",
"type": 1,
"code": "permissions",
"pid": "0",
"enVisible": "1"
},
{
"id": "604f7e50f900be1850edb155",
"name": " 社保",
"description": " 社保",
"type": 1,
"code": "social_securitys",
"pid": "0",
"enVisible": "1"
},
{
"id": "604f7e5bf900be1850edb156",
"name": "审批",
"description": "审批",
"type": 1,
"code": "approvals",
"pid": "0",
"enVisible": "1"
},
{
"id": "604f7e66f900be1850edb157",
"name": "考勤",
"description": "考勤",
"type": 1,
"code": "attendances",
"pid": "0",
"enVisible": "1"
},
{
"id": "604f7e79f900be1850edb158",
"name": "工资",
"description": "工资",
"type": 1,
"code": "salarys",
"pid": "0",
"enVisible": "0"
},
{
"id": "6050175b140b332e04cced02",
"name": "测试",
"description": "aa",
"type": 2,
"code": "aa",
"pid": "604f7df5f900be1850edb152",
"enVisible": "1"
}
],
"message": "获取权限点成功"
}
修改于 2022-07-10 03:09:31