获取项目下指定条件组合的单元

更新时间:2021-10-23 17:53:28

接口说明

获取项目下指定条件组合的单元

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/units/get-by-units

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
project_id body string 39ff70b4-7376-6fc3-0f15-2ce1824c7e8d 项目ID
conditions body string {\"39ffbd54-d869-db9a-7cab-ffb98f478ebc\":[[\"=\",\"building_id\",\"39ffbd54-d869-db9a-7cab-ffb98f478ebc\"]]} where 组合条件
tenant_code query string zjalpha 租户code

请求示例

{
    "project_id": "39ffb2f0-001c-c30e-2770-166993df44d1",
    "conditions": "{\"39ffbd54-d869-db9a-7cab-ffb98f478ebc\":[[\"=\",\"building_id\",\"39ffbd54-d869-db9a-7cab-ffb98f478ebc\"]]}"
}

返回成功示例

{
    "errcode": 0,
    "errmsg": "请求成功",
    "data": [
        {
            "building_id": "39ffbd54-d869-db9a-7cab-ffb98f478ebc",
            "unit": "2"
        }
    ]
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number
errmsg string
data array
data.room_id string 房间ID
data.building_id string
data.unit string

失败返回示例

{
  "errcode":4001, 
  "errmsg":"必填参数不能为空",
  "data":null
}

返回参数说明(失败)

参数名 参数类型 描述

results matching ""

    No results matching ""