登陆

/user/login (登陆)
method: post
content-type: application/json

参数:
{
"username": "ljc",
"password": "f76af0b4f5b9a75c3487f84c4286a632" // 密码md5 32位小写
}

响应体
{
"code": 0,
"message": "OK",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJFeHBpcmVkIjoxNjI4Mzk3MjU1LCJpYXQiOjE2MjgzMTA4NTUsImlkIjoxLCJuYmYiOjE2MjgzMTA4NTUsInVzZXJuYW1lIjoibGpjIn0.gSztq-eNgimFAqEEcpYKj__X__PUW8MxytxolQepi54"
}

错误码
&Errno{Code: 10016, Message: "参数绑定错误"}
&Errno{Code: 10006, Message: "密码错误"}
&Errno{Code: 0, Message: "OK"}

你可能感兴趣的:(登陆)