mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 13:42:11 +08:00
33 lines
754 B
HTTP
33 lines
754 B
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}}
|
|
|
|
|
|
### 登录
|
|
POST {{host}}/admin/passport/login
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
username=admin&password=123456
|
|
|
|
> {%
|
|
client.global.set("admin_token", response.body.data.access_token);
|
|
%}
|
|
|
|
|
|
### 登录
|
|
GET {{host}}/admin/passport/getInfo
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}} |