登录接口

简要描述:

  • 接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2022-02-11  

请求URL:

请求方式:

  • POST

请求头:

参数名 是否必须 类型 说明
       

密码登录请求参数:

参数名 是否必须 类型 说明
phone string 手机号,13113690000
password string 密码

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "登录成功",
    "data": {
        "uid": 2,
        "avatar": "http://uchat.com/uploads/avatar/avatar.jpg",
        "phone": "13113690000",
        "username": "131****00004806",
        "nickname": "131****0000",
        "status": "1",
        "create_at": "2021-09-13 15:02:26",
        "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIsImlzcyI6Imh0dHA6Ly91Y2hhdC5E"
    }
}

错误时返回:

{
    "status": 0,
    "msg": "密码错误"
}

返回参数说明:

参数名 类型 说明
uid string 用户uid
avatar string 用户头像
phone string 手机号
username string 用户名
nickname string 昵称
status int 账号状态,0=禁用,1=启用
create_at string 注册时间
token string 授权

备注:

评论
列表