简要描述:

-

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2021-06-16

请求URL:

请求方式:

  • POST

请求头:

参数名 是否必须 类型 说明

密码登录请求参数:

参数名 是否必须 类型 说明
login_type int 固定值 1
phone string 手机号,13113690000
password string 密码

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "登录成功",
    "data": {
        "maintenance_uid": 6,
        "job_number": "KLD666666",
        "avatar": "http://iot.com/uploads/avatar/2021-05-07/6094f2ec84c10.png",
        "username": "kld-维修1号",
        "phone": "13113690100",
        "wechat": "kld-维修1号",
        "wechat_qr_code": "http://iot.com/uploads/wechat_qr_code/2021-05-07/6094f2ecc992d.png",
        "male": "男",
        "area": "广东省 深圳市 龙岗区",
        "service_num": 0,
        "star": 5,
        "status": 1,
        "created_at": "2021-05-07 15:57:32",
        "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOm51bGwsImlzcyI6Imh0dHA6Ly9pb3QuY29tL21vZHVsZS9pb3QvbWFpbnRlbmFuY2VQZXJzb25uZWxMb2dpbiIsImlhdCI6MTYyMzgzNjEyNiwiZXhwIjoxNjI1MDQ1NzI2LCJuYmYiOjE2MjM4MzYxMjYsImp0aSI6IkxXV2U0emkxUE1JQ1BMVUsifQ.3_6n-dKuI7DEdRMFeRjswjIsJqNhCiKFyAILpS0qn1c"
    }
}

错误时返回:

{
    "status": 0,
    "msg": "验证码错误"
}

返回参数说明:

参数名 类型 说明
maintenance_uid string 用户uid
job_number string 工号
avatar string 用户头像
username string 用户名
phone string 手机号
wechat string 微信
wechat_qr_code string 微信二维码
male string 性别
area string 地区
service_num string 服务次数
star int 星数 满分为5
status int 状态【1=启用,2=禁用】
created_at string 注册时间
token string 授权

备注:

文档更新时间: 2021-08-18 16:15   作者:admin