feat : role
This commit is contained in:
@@ -18,18 +18,22 @@ 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=1
|
||||
GET {{host}}/admin/auth/menu?menu_id=2
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{admin_token}}
|
||||
|
||||
@@ -45,5 +49,28 @@ 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=测试
|
||||
Reference in New Issue
Block a user