[TOC]
接口说明
接口地址
http://xxx.com/login/signIn
请求方式
请求参数
- 请求体
- Content-Type:application/json
参数名 |
类型 |
是否必选 |
说明 |
userName |
String |
√ |
用户名 |
userPwd |
String |
√ |
用户密码 |
响应数据
参数名 |
类型 |
说明 |
res |
String |
1:成功,0:失败 |
msg |
String |
提示信息 |
data |
String |
token密钥 |
error |
String |
错误信息 |
count |
String |
数量 |
响应示例
{
"res": 1,
"msg": "登录成功",
"data": "eyJhbGciOiJIUzI1NiIsIlR5cGUiOiJKd3QiLCJ0eXAiOiJKV1QifQ.eyJsb2dpblRpbWUiOiIyMDIzLTAzLTA3IDE2OjMyOjU1IiwibG9naW5OYW1lIjoicm9vdCIsImV4cCI6MTY3ODE3OTc3NX0.7jy_AVg9KKCfYChDqb6ocsZFGymiwuEGo7fVtFsDZSw",
"count": 1,
"error": null
}
{
"res": 0,
"msg": "用户不存在",
"data": null,
"count": 0,
"error": null
}
{
"res": 0,
"msg": "密码错误,您还有3次机会",
"data": null,
"count": 0,
"error": null
}
{
"res": 0,
"msg": "密码错误次数过多,账号已被锁定,请联系管理员",
"data": null,
"count": 0,
"error": null
}
{
"res": 0,
"msg": "账号已被锁定,请联系管理员",
"data": null,
"count": 0,
"error": null
}