mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 15:57:50 +08:00
54 lines
1.3 KiB
HTTP
54 lines
1.3 KiB
HTTP
### 登录
|
|
POST {{host}}/admin/login/login
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
username=admin&password=admin
|
|
|
|
> {%
|
|
client.global.set("admin_token", response.body.data.access_token);
|
|
client.global.set("refresh_token", response.body.data.refresh_token);
|
|
%}
|
|
|
|
|
|
### 登录
|
|
GET {{host}}/admin/adminUser/getInfo
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
|
|
### 列表
|
|
GET {{host}}/admin/adminUser/list
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
|
|
### 修改用户资料
|
|
PUT {{host}}/admin/adminUser
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
nickname=超超级管理员
|
|
|
|
|
|
|
|
### 获取角色
|
|
GET {{host}}/admin/adminUser/1/roles
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
|
|
### 登录
|
|
POST {{host}}/admin/login/refresh
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{refresh_token}}
|
|
|
|
> {%
|
|
client.global.set("admin_token", response.body.data.access_token);
|
|
client.global.set("refresh_token", response.body.data.refresh_token);
|
|
%}
|
|
|
|
|
|
### 登录
|
|
GET {{host}}/admin/passport/getInfo
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}} |