~~~[api]
POSt:/login
*string:usernamne#登錄用戶名
*string:password#登錄密碼
<<<
正確
{
"code": 200,
"msg": "登錄成功",
"data": {
"user_info": {
"user_id": 1,
"username": "admin",
"email": "xjdnw@sina.com",
"status": 1,
"create_at": "0000-00-00 00:00:00",
"update_at": null,
"delete_at": null
}
}
}
<<<
錯誤
{
"code": 401,
"msg": "用戶名或密碼不正確",
"data": []
}
~~~