获取项目下指定条件组合的单元
请求方式: 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
}
| 参数名 | 参数类型 | 描述 |
|---|---|---|