On this page
用户密码登录
接口URL
请求方式
POST
Content-Type
urlencoded
请求Body参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
username | 13562321240 | String | 是 | 手机号/邮箱 |
password | 123456 | String | 是 | 密码 |
成功响应示例
json
{
"code": 1,
"msg": "ok",
"data": {
"name": "哈哈哈",
"id": 7,
"username": "哈哈哈",
"avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
"password": true,
"phone": "135****1240",
"email": "17000000000@163.com",
"status": 1,
"age": 0,
"sex": 1,
"qg": 1,
"job": null,
"path": "广东广州",
"birthday": "1990-11-11",
"desc": "我最帅",
"wx_openid": null,
"wx_unionid": null,
"create_time": null,
"update_time": "2024-04-07 01:17:17",
"fans_count": 46,
"follows_count": 19,
"articles_count": 30,
"comments_count": 82,
"token": "490049e81a36018f5c87b6d3adeb9c13ec7d3f6e"
}
}
错误响应示例
json
{
"code": 0,
"msg": "密码错误",
"data": null
}