1. 登录

1.1. 基本信息

Path

POST http://building-bos.rickricks.com/bospersonnelservice/{buildingId}/users/login

API描述

登录建筑

1.2. 请求参数

Request Headers

参数名称 介绍 举例
Authorization 用户令牌 token
Content-Type media type application/json

Path Param

参数名称 介绍 举例
buildingId 建筑ID wc0eb31f8baf4368a698925a73c43874

Request Body

multipart/form-data

参数名称 类型 必需 介绍
name String Y 用户名
password String Y 登录密码

1.3. 返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "access_token": "eyJhbGciOiAlbKDP9H9qb8",// 建筑请求令牌
        "expires": "1564734270159", // 失效时间
        "user": { // 用户信息
            "id": "04083243af35401181c03fec7210c739",
            "name": "asdrd2",
            "fullName": "ZZZ",
            "telephone": "18612341234",
            "active": "1",
            "guser": null,
            "gtime": "1556018115377",
            "userType": "0",
            "company": null,
            "email": null,
            "contact": null,
            "lastLoginTime": "1564712670159",
            "registerTime": "1556018115377",
            "guid": null,
            "myApps": null,
            "appCount": null,
            "guserType": null
        },
        "modelDb": [
            "uf0016c31013419b97f75c4df6728e09" // 建筑对应的modelDB
        ]
    }
}
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-09-23 15:25:50

results matching ""

    No results matching ""