pwd/login
{
"phone": 123456789,
"pwd": "123412342314"
}
sms/login 携带手机号验证码登陆返回token
POST request:
{
"phone": 1234545565,
"verify_code": 1234
}
response:
{
"code": 200,
"message": "success",
"token": "asdfasdfwerwerwe3094"
}
{
"code": -1,
"message": "fail"
}
sms/sendPhone 获取验证码
POST request:
{
"phone": 123345455
}
response:
{
"code": 1,
"message": "success",
"verify_code": 1234
}
POST jwt/auth
jwt-token: "" //header
{ //body
uid: ""
}
response:
hello jwt {uid}
新密码 与 验证码
pwd/sendPhone 获取验证码
还没做
pwd/setPwd 修改
request
{
"phone": "121231232",
"new_pwd": "adfasdf",
"verify_code": "1234"
}
response
{
"code": 1/-1,
"message": ""
}
-
user/userDetails 一体 或 包含
-
类名修改
-
jwt success response
-
sql文件