76 lines
2.0 KiB
HTTP
76 lines
2.0 KiB
HTTP
### 登录
|
|
POST {{host}}/admin/login/user
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
account=13632877014&password=123456
|
|
|
|
> {%
|
|
client.global.set("admin_token", response.body.data.token);
|
|
%}
|
|
|
|
### 权限单列表
|
|
GET {{host}}/admin/auth/menu_list
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 权限单添加
|
|
POST {{host}}/admin/auth/menu_add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
menu_name=第二页&menu_url=/admin/second&menu_icon=fa fa-user&menu_sort=2&menu_status=1&parent_id=0
|
|
|
|
### 权限修改
|
|
POST {{host}}/admin/auth/menu_edit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
menu_id=11&menu_name=第二页1&menu_url=/admin/second&menu_icon=fa fa-user&menu_sort=2&menu_status=1&parent_id=0
|
|
|
|
### 权限删除
|
|
GET {{host}}/admin/auth/menu_del?menu_id=1
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 权限详情
|
|
GET {{host}}/admin/auth/menu?menu_id=2
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 权限构建缓存
|
|
GET {{host}}/admin/auth/menu_build_cache
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
|
|
|
|
### 角色详情
|
|
GET {{host}}/admin/auth/role?role_id=1
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 角色列表
|
|
GET {{host}}/admin/auth/role_list?limit=10
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 角色更改状态
|
|
POST {{host}}/admin/auth/role_change_status
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
role_id=1&role_status=2
|
|
|
|
### 角色添加
|
|
POST {{host}}/admin/auth/role_add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
role_name=测试&role_status=1&menu_ids=1,2,3,4,5,6,7,8,9&role_remark=测试
|
|
|
|
### 角色修改
|
|
POST {{host}}/admin/auth/role_edit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
role_id=3&role_name=测试&role_status=1&menu_ids=1,2,3,4,5,6,7&role_remark=测试 |