POST /base/adminLogin
请求:
|
字段 |
名称 |
类型 |
是否必须 |
|
username |
账号 |
string |
是 |
|
password |
密码 |
string |
是 |
返回:
|
字段 |
名称 |
类型 |
|
user |
管理员信息 |
array |
|
token |
x-token |
string |
|
expiresAt |
过期时间 |
int |
{
“code”: 0,
“data”: {
“user”: {
“id”: 1,
“created_at”: 1615931982,
“updated_at”: 1636946483,
“uuid”: “d02aafe1-40a1-401a-87f2-2af18e1456ec”,
“userName”: “admin”,
“nickName”: “超级管理员666”,
“headerImg”: “http://qmplusimg.henrongyi.top/gva_header.jpg”,
“authority”: {
“created_at”: 1615931982,
“updated_at”: 1631150645,
“authorityId”: “888”,
“authorityName”: “普通用户”,
“parentId”: “0”,
“dataAuthorityId”: null,
“children”: null,
“menus”: null,
“defaultRouter”: “dashboard”
},
“authorityId”: “888”,
“is_supplier”: false,
“freeze”: 0
},
“token”: “eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVVUlEIjoiZDAyYWFmZTEtNDBhMS00MDFhLTg3ZjItMmFmMThlMTQ1NmVjIiwiSUQiOjEsIlVzZXJuYW1lIjoiYWRtaW4iLCJOaWNrTmFtZSI6Iui2hee6p-euoeeQhuWRmDY2NiIsIkF1dGhvcml0eUlkIjoiODg4IiwiQnVmZmVyVGltZSI6ODY0MDAsImV4cCI6MTY0NTc2ODY0MCwiaXNzIjoicW1QbHVzIiwibmJmIjoxNjQ1MTYyODQwfQ.mE4VsUkY8BSfSmtXLd6ZBxswXodnT8qQ5CV5lPRR5so”,
“expiresAt”: 1645768640000
},
“msg”: “登录成功”
}