feat: jwt
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
### 角色详情
|
||||
GET {{host}}/admin/auth/role?role_id=1
|
||||
### 登录
|
||||
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/role?role_id=1
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{admin_token}}
|
||||
|
||||
|
||||
###
|
||||
Reference in New Issue
Block a user