feat : user

This commit is contained in:
2024-10-30 11:02:07 +08:00
parent 5dad242446
commit ad89cdeb83
4 changed files with 140 additions and 9 deletions

View File

@@ -73,4 +73,40 @@ 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=测试
role_id=3&role_name=测试&role_status=1&menu_ids=1,2,3,4,5,6,7&role_remark=测试
### 账号添加
POST {{host}}/admin/employee/add
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {{admin_token}}
account=13632877013&status=1&role_id=1&chinese_name=测试
### 账号修改
POST {{host}}/admin/employee/edit
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {{admin_token}}
id=2&account=13632877013&status=1&role_id=1&chinese_name=测试1
### 账号删除
GET {{host}}/admin/employee/del?id=2
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {{admin_token}}
### 账号详情
GET {{host}}/admin/employee/info?id=1
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {{admin_token}}
### 账号列表
GET {{host}}/admin/employee/list?limit=10
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {{admin_token}}
### 账号重置密码
GET {{host}}/admin/employee/reset_password?id=2
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {{admin_token}}