方案中心

API列表

1.X 为方案主数据接口 (部分mongoDB数据)。kafka (发布过的方案数据)数据表在中台,从中台取。

2.X DTS同步过来的数据接口,提供给外部用 (基础数据)。

编号 API名称 路径 版本
1.1 获取方案名称列表 /tx/platform-biz/remac-tx-combination/layout/getLayoutNameList 1.0
1.2 获取方案详情 /tx/platform-biz/remac-tx-combination/layout/getLayoutDetailById 1.0
1.3 获取方案场景列表 /tx/platform-biz/remac-tx-combination/layout/getLayoutScenesById 1.0
1.4 获取方案房间列表 /tx/platform-biz/remac-tx-combination/layout/getRoomListById 1.0
1.5 获取方案房间内的设备列表 /tx/platform-biz/remac-tx-combination/layout/getLayoutProductList 1.0
1.6 获取方案图片 /tx/platform-biz/remac-tx-combination/layout/getLayoutImageList 1.0
1.7 获取方案内所有的设备面板配置 /tx/platform-biz/remac-tx-combination/layout/getPanelConfigsById 1.0
1.8 获取方案房间内的设备详情 /tx/platform-biz/remac-tx-combination/layout/getLayoutProductDetail 1.0
1.9 获取方案设备面板配置 /tx/platform-biz/remac-tx-combination/layout/getPanelConfigByLayoutProductId 1.0
1.10 获取方案设备组列表 /tx/platform-biz/remac-tx-combination/layout/getLayoutProductGroupList 1.0
1.11 获取方案场景集列表 /tx/platform-biz/remac-tx-combination/layout/getLayoutSceneGroupById 1.0
1.12 获取方案对应的最新版本 /tx/platform-biz/remac-tx-combination/layout/getLayoutLatestVersion 1.0
1.13 获取方案多控列表 /tx/platform-biz/remac-tx-combination/layout/getLayoutServoListById 1.0
1.14 获取方案睿控配置列表 /tx/platform-biz/remac-tx-combination/layout/getLayoutPanelBindListById 1.0
1.15 获取方案睿控和多控配置列表 /tx/platform-biz/remac-tx-combination/layout/getLayoutPanelBindAndServo 1.0
1.16 获取泊声通道配置列表 /tx/platform-biz/remac-tx-combination/layout/getLayoutBsChannelConfig 1.0
2.1 网关表全量数据 /tx/platform-biz/remac-tx-combination/data/queryAllGatewayOption 1.0
2.2 产品网关关联表全量数据 /tx/platform-biz/remac-tx-combination/data/queryAllProductGatewayOptionRelation 1.0
2.3 方案产品户型关联表全量数据 /tx/platform-biz/remac-tx-combination/data/queryAllProductRoomTypeRelation 1.0
2.4 标签表全量数据 /tx/platform-biz/remac-tx-combination/data/queryAllLabel 1.0
2.5 标签关联表全量数据 /tx/platform-biz/remac-tx-combination/data/queryAllLabelRelation 1.0
2.6 图片库全量数据 /tx/platform-biz/remac-tx-combination/data/queryAllPictureUrl 1.0
2.7 房间类型表全量数据 /tx/platform-biz/remac-tx-combination/data/queryAllRoom 1.0
2.8 方案户型类型表全量数据 /tx/platform-biz/remac-tx-combination/data/queryAllRoomType 1.0
2.9 方案户型类型关联全量数据 /tx/platform-biz/remac-tx-combination/data/queryAllRoomTypeRelation 1.0
2.10 场景模板表全量数据 /tx/platform-biz/remac-tx-combination/data/queryAllSceneTemplate 1.0
2.11 场景模板产品表全量数据 /tx/platform-biz/remac-tx-combination/data/queryAllSceneTemplateProduct 1.0
2.12 场景模板产品组表全量数据 /tx/platform-biz/remac-tx-combination/data/queryAllSceneTemplateProductGroup 1.0
2.13 模板产品组与产品关联表数据 /tx/platform-biz/remac-tx-combination/data/queryAllSceneTemplateGroupProductRelation 1.0
2.14 动态查询数据 /tx/platform-biz/remac-tx-combination/data/queryDynamicsData 1.0
3.1 查询房间分类和房间信息 /tx/platform-biz/remac-tx-combination/data/queryRoomAndType 1.0

API调用

1、方案管理

1.1: 获取方案名称列表

描述

请求信息

HTTP协议:HTTP,HTTPS

/tx/platform-biz/remac-tx-combination/layout/getLayoutNameList

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页条数

请求Body描述

{
    "pageNo":1,
    "pageSize": 2
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
id Long 方案id
layoutId Long 方案追踪id
layoutName String 方案名称
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "id": 17742,
                "layoutId": 17742,
                "layoutName": "测试11"
            },
            {
                "id": 17768,
                "layoutId": 17768,
                "layoutName": "我的方案测试"
            }
        ],
        "pageNo": 1,
        "pageSize": 2,
        "total": 379
    }
}

1.2: 获取方案详情

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getLayoutDetailById

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述

请求Body描述

{
    "id":9005
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
totalLayoutProductNum Integer 设备数量
productId Integer 产品id
modelId String modelId
customName String 自定义设备名
panelPoint Integer 面板按钮序号
name String 按钮名称
type String 灯类型
roomId Integer 房间id
roomName String 房间名称
order Integer 设备序号
layoutProductId Long 方案设备id
layoutProductName String 方案设备名称
layoutName String 方案名称
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "totalLayoutProductNum": 2,
        "roomList": [
            {
                "layoutProductNum": 1,
                "deviceList": [
                    {
                        "productId": 287,
                        "modelId": "remac.switch.002",
                        "customName": "",
                        "panelConfigs": [
                            {
                                "panelPoint": 1,
                                "name": "1",
                                "type": "deskLight",
                                "roomId": 240
                            },
                            {
                                "panelPoint": 2,
                                "name": "2",
                                "type": "downLight",
                                "roomId": 228
                            }
                        ],
                        "layoutProductId": 136438,
                        "layoutProductName": "二路开关面板",
                        "order": 2
                    }
                ],
                "roomName": "儿童房",
                "roomId": 232
            },
            {
                "layoutProductNum": 1,
                "deviceList": [
                    {
                        "productId": 289,
                        "modelId": "remac.switch.001",
                        "customName": "",
                        "panelConfigs": [
                            {
                                "panelPoint": 1,
                                "name": "1",
                                "type": "deskLight",
                                "roomId": 240
                            }
                        ],
                        "layoutProductId": 136430,
                        "layoutProductName": "一路开关面板",
                        "order": 1
                    }
                ],
                "roomName": "客厅",
                "roomId": 223
            }
        ],
        "layoutName": "帅聪方案"
    }
}

1.3: 获取方案场景列表

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getLayoutScenesById

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
id Long 方案id

请求Body描述

{
    "id":9005
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
version Integer 场景版本
enable Integer 是否开启
type Integer 方案类型
customName String 自定义设备名
panelPoint Integer 面板按钮序号
name String 按钮名称
type String 灯类型
triggers List 触发条件
tasks List 执行动作
sceneID Long 场景id
layoutId Long 方案id
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": [
        {
            "sceneInfo": {
                "version": 4,
                "enable": 1,
                "type": 4,
                "scene": {
                    "triggers": [
                        {
                            "cache": {
                                "index": 1,
                                "deviceName": "一路开关面板D1ZDK-1",
                                "eventDesc": "第一路开关:打开",
                                "serviceType": "midea.switch.001",
                                "sceneTag": "midea.switch.001",
                                "icon": "rz65"
                            },
                            "condition": {
                                "cmp": 0,
                                "conditionType": 1,
                                "event": {
                                    "power_1": 1
                                }
                            },
                            "deviceId": 167225,
                            "productKey": "981192efe9bf45429279b6cf303682f4",
                            "modelId": "midea.switch.001",
                            "type": 1
                        }
                    ],
                    "tasks": [
                        {
                            "actionType": "Zigbee",
                            "actions": [
                                {
                                    "action": "setProperties",
                                    "input": {
                                        "movePercentage": 0
                                    }
                                }
                            ],
                            "cache": {
                                "index": 1,
                                "serviceType": "dooya.curtain.203",
                                "sceneTag": "dooya.curtain.203",
                                "eventDesc": "窗帘百分比调整:0",
                                "delayDesc": "延迟0秒",
                                "icon": "rz45"
                            },
                            "delayTime": 0,
                            "deviceId": 167220,
                            "modelId": "dooya.curtain.203",
                            "serial": false,
                            "type": 1,
                            "delayTimeId": "d85fffde-fcec-43d2-bb08-e4863b748d37",
                            "productKey": "51328126164b40d48f14e286b2594045",
                            "isGroupDevice": false
                        },
                        {
                            "actionType": "Zigbee",
                            "actions": [
                                {
                                    "action": "setProperties",
                                    "input": {
                                        "brightness": 94,
                                        "power": 1,
                                        "colorTemperature": 6000
                                    }
                                }
                            ],
                            "cache": {
                                "index": 2,
                                "serviceType": "orvibo.light.104",
                                "sceneTag": "orvibo.light.104",
                                "eventDesc": "亮度:94,开关:开,色温:6000",
                                "delayDesc": "延迟2秒",
                                "icon": "rzDeviceGroup"
                            },
                            "delayTime": 2,
                            "deviceId": 7696,
                            "modelId": "orvibo.light.104",
                            "serial": false,
                            "type": 1,
                            "delayTimeId": "19036eee-2959-4f7f-a921-586bbcf1b719",
                            "productKey": "bd6f1cde1aca4cc78aa342768eea5dc6",
                            "isGroupDevice": true
                        },
                        {
                            "actionType": "Zigbee",
                            "actions": [
                                {
                                    "action": "setProperties",
                                    "input": {
                                        "brightness": 86,
                                        "power": 1,
                                        "colorTemperature": 6200
                                    }
                                }
                            ],
                            "cache": {
                                "index": 2,
                                "serviceType": "orvibo.light.104",
                                "sceneTag": "orvibo.light.104",
                                "eventDesc": "亮度:86,开关:开,色温:6200",
                                "delayDesc": "延迟3秒",
                                "icon": "rzDeviceGroup"
                            },
                            "delayTime": 3,
                            "deviceId": 7697,
                            "modelId": "orvibo.light.104",
                            "serial": false,
                            "type": 1,
                            "delayTimeId": "5066ffbd-9d6d-491d-b25e-f0e0022367e7",
                            "productKey": "bd6f1cde1aca4cc78aa342768eea5dc6",
                            "isGroupDevice": true
                        }
                    ]
                },
                "cache": {
                    "sName": "客厅灯全开",
                    "icon": "0"
                },
                "templateId": 8970,
                "layoutId": 8970,
                "activeTime": {
                    "dayOfWeek": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                    ],
                    "begin": 0,
                    "end": 0
                }
            },
            "updateBy": "ouyonghua01",
            "enable": 1,
            "sceneID": 31243,
            "updateAt": 1679540372994,
            "layoutId": 9005,
            "status": 0
        }

    ]
}

1.4: 获取方案房间列表

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getRoomListById

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
id Long 方案id

请求Body描述

{
    "id":9005
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
id Integer 房间id
name String 房间名称
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": [
        {
            "name": "客厅",
            "id": 223
        },
        {
            "name": "餐厅",
            "id": 224
        },
        {
            "name": "主卧",
            "id": 225
        },
        {
            "name": "儿童房",
            "id": 232
        },
        {
            "name": "衣帽间",
            "id": 237
        },
        {
            "name": "厨房",
            "id": 238
        }
    ]
}

1.5: 获取方案房间内的设备列表

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getLayoutProductList

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
id Long 方案id
roomId Integer 房间id

请求Body描述

{
    "id":9005
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
panelQty Integer 可配置面板路数
multiPanel Integer 已配置面板路数
modelId String modelId
icon String icon
customName String 自定义设备名
layoutProductId Long 方案设备id
layoutProductName String 方案设备名
roomId Integer 房间id
roomName String 房间名称
order Integer 设备序号
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": [
        {
            "panelQty": 1,
            "multiPanel": 0,
            "modelId": "remac.switch.control.101",
            "icon": "rz11",
            "customName": "",
            "layoutProductId": 33553,
            "layoutProductName": "一路开关面板(睿控系统)",
            "roomId": 225,
            "roomName": "主卧",
            "order": 1
        },
        {
            "panelQty": 1,
            "multiPanel": 0,
            "modelId": "remac.switch.control.101",
            "icon": "rz11",
            "customName": "",
            "layoutProductId": 33554,
            "layoutProductName": "一路开关面板(睿控系统)",
            "roomId": 225,
            "roomName": "主卧",
            "order": 2
        },
        {
            "panelQty": 2,
            "multiPanel": 1,
            "modelId": "midea.switch.002.003",
            "icon": "rz12",
            "configNum": 2,
            "customName": "",
            "layoutProductId": 33555,
            "layoutProductName": "二路开关面板",
            "roomId": 226,
            "roomName": "主卧2",
            "order": 3
        },
        {
            "panelQty": 4,
            "multiPanel": 0,
            "modelId": "midea.switch.013.003",
            "icon": "rz16",
            "customName": "",
            "layoutProductId": 33785,
            "layoutProductName": "卧室场景面板A3Z-CJ-04W(NXP)",
            "roomId": 227,
            "roomName": "主卧3",
            "order": 4
        }
    ]
}

1.6: 获取方案图片

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getLayoutImageList

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
id Long 方案id

请求描述

{
    "id":9005
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
roomId Integer 房间id
roomName String 房间名称
url String 图片路径
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": [
        {
            "layoutId": 9005,
            "roomId": 0,
            "roomName": "全部空间",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540344868/layout_.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 223,
            "roomName": "客厅",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540344830/room_223.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 224,
            "roomName": "餐厅",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540344859/room_224.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 225,
            "roomName": "主卧",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540344891/room_225.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 232,
            "roomName": "儿童房",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540345116/room_232.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 237,
            "roomName": "衣帽间",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540344992/room_237.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 238,
            "roomName": "厨房",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540344873/room_238.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 240,
            "roomName": "玄关",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540344873/room_240.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 242,
            "roomName": "过道",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540345048/room_242.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 243,
            "roomName": "走廊",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540345124/room_243.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 256,
            "roomName": "景观阳台",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540345032/room_256.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 261,
            "roomName": "主卫",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540344990/room_261.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 263,
            "roomName": "公卫",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540345032/room_263.jpg"
        },
        {
            "layoutId": 9005,
            "roomId": 272,
            "roomName": "健身房",
            "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-03-23/1679540345010/room_272.jpg"
        }
    ]
}

1.7: 获取方案内所有的设备面板配置

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getPanelConfigsById

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
id Long 方案id

请求描述

{
    "id":9005
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
panelPoint Integer 房间id
name String 房间名称
type String 图片路径
roomId Integer 图片路径
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": [
        {
            "configs": [
                {
                    "panelPoint": 1,
                    "name": "1",
                    "type": "corridorLight",
                    "roomId": 223
                }
            ],
            "productId": 320,
            "layoutProductId": 167225,
            "layoutId": 9005
        }
    ]
}

1.8: 获取方案房间内的设备详情

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getLayoutProductDetail

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
id Long 方案id
roomId Integer 房间id

请求描述

{
    "id":9005,
    "roomId":225
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
id Long 方案设备id
xaxis Integer x轴坐标
yaxis Integer y轴坐标
zaxis Integer z轴坐标
productId Integer 产品id
roomName String 房间名称
roomId Integer 房间id
order Integer 序号
name String 产品名称
customName String 产品自定义名称
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "devices": [
            {
                "id": 33553,
                "xaxis": -149,
                "yaxis": 119,
                "zaxis": 0,
                "productId": 450,
                "roomName": "主卧",
                "roomId": 225,
                "order": 1,
                "name": "一路开关面板(睿控系统)",
                "customName": null,
                "productModel": "A3-DK-01",
                "icon": "rz11",
                "prodUrl": null,
                "modelId": "remac.switch.control.101",
                "type": 2,
                "isTrigger": 1,
                "isAction": 1,
                "tdId": null,
                "thirdClassifyId": null,
                "classifyName": null,
                "productKey": null,
                "containerId": null,
                "picon": null
            },
            {
                "id": 33554,
                "xaxis": -136,
                "yaxis": 149,
                "zaxis": 0,
                "productId": 450,
                "roomName": "主卧",
                "roomId": 225,
                "order": 2,
                "name": "一路开关面板(睿控系统)",
                "customName": null,
                "productModel": "A3-DK-01",
                "icon": "rz11",
                "prodUrl": null,
                "modelId": "remac.switch.control.101",
                "type": 2,
                "isTrigger": 1,
                "isAction": 1,
                "tdId": null,
                "thirdClassifyId": null,
                "classifyName": null,
                "productKey": null,
                "containerId": null,
                "picon": null
            }
        ],
        "layoutUrl": "",
        "width": 700,
        "height": 400
    }

}

1.9: 获取方案设备面板配置

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getPanelConfigByLayoutProductId

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
layoutProductId Long 方案设备id

请求描述

{
    "layoutProductId":167225
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
panelPoint Integer 面板开关点位
name String 面板开关名称
type Integer 灯类型
typeName String 灯类型名称
roomId Integer 房间id
roomName String 房间名称
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "configs": [
            {
                "panelPoint": 1,
                "name": "1",
                "type": "corridorLight",
                "roomId": 223,
                "roomName": "客厅",
                "typeName": "廊灯"
            }
        ],
        "productId": 320,
        "layoutProductId": 167225,
        "layoutId": 9005
    }
}

1.10: 获取方案设备组列表

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getLayoutProductGroupList

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
id Long 方案id

请求描述

{
    "id":9005
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
layoutProductIds Long 方案设备id
icon String icon
name String 设备组名称
id Long 设备组id
isAction Integer 是否为执行动作 0否,1是
isTrigger Integer 是否为触发条件 0否,1是
roomName String 房间名称
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": [
        {
            "layoutProductIds": [
                167223,
                167224
            ],
            "productId": 0,
            "isGroupDevice": true,
            "icon": "rz56",
            "name": "客厅灯带",
            "id": 7696,
            "isAction": 1,
            "roomName": "客厅"
        },
        {
            "layoutProductIds": [
                167221,
                167222
            ],
            "productId": 0,
            "isGroupDevice": true,
            "icon": "rz56",
            "name": "客厅灯",
            "id": 7697,
            "isAction": 1,
            "roomName": "客厅"
        }
    ]
}

1.11: 获取方案场景集列表

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getLayoutSceneGroupById

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
id Long 方案id

请求描述

{
    "id":9005
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
sceneIdList Long 场景id列表
sceneName String 场景集名称
name String 场景集名称
id Long 场景集id
type Integer 类型,0方案,1场景,2产品,3户型模板,4客户
objectId Long 对象id
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": [
        {
            "createBy": "",
            "createTime": 1679556705000,
            "sceneIdList": [
                32602,
                32603
            ],
            "updateBy": "",
            "isSceneGroup": true,
            "sceneName": "1.5版本客厅",
            "name": "1.5版本客厅",
            "sceneID": 4458,
            "updateTime": 1679556705000,
            "id": 4458,
            "type": 0,
            "objectId": 9305
        }
    ]
}

1.12: 获取方案对应的最新版本

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getLayoutLatestVersion

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
layoutId Long 方案追踪id

请求描述

{
    "id":9005
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
versionNmb Integer 版本号
enable Integer 是否有效0无效1有效
name String 方案名称
id Long 方案id
layoutId Long 方案追踪id
status Integer 状态:0草稿,1发布
stayFlag Integer 保留标志
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "versionNmb": 2,
        "createTime": 1678872040000,
        "enable": 1,
        "name": "测试还原记录功能",
        "id": 6857,
        "layoutId": 6840,
        "status": 1,
        "stayFlag": 0
    }
}

1.13: 获取方案多控列表

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getLayoutServoListById

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
id Long 方案id

请求描述

{
    "id":19229
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
servoId Long 多控id
isValid Integer 是否可用:0不可用,1可用
deviceId Long 设备id
endpoint Integer 第几路
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": [
        {
            "servoId": 6,
            "isValid": 1,
            "servoDeviceVoList": [
                {
                    "servoId": 6,
                    "deviceId": 353615,
                    "endpoint": 1
                },
                {
                    "servoId": 6,
                    "deviceId": 353613,
                    "endpoint": 1
                }
            ]
        },
        {
            "servoId": 7,
            "isValid": 1,
            "servoDeviceVoList": [
                {
                    "servoId": 7,
                    "deviceId": 353615,
                    "endpoint": 1
                },
                {
                    "servoId": 7,
                    "deviceId": 353613,
                    "endpoint": 1
                },
                {
                    "servoId": 7,
                    "deviceId": 353614,
                    "endpoint": 1
                }
            ]
        }
    ]
}

1.14: 获取方案睿控配置列表

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getLayoutPanelBindListById

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
id Long 方案id

请求描述

{
  "id":18836
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
panelBindId Long 面板绑定id
deviceId Long 设备id
endpoint Integer 第几路
bindType Integer 类型,1-灯, 16-灯组, 32-场景
type Integer 类型,1-灯,16-灯组
bindAttributes String 属性
modelId String 设备model
sceneId Long 场景id
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": [
        {
            "panelBindId": 44,
            "deviceId": 353527,
            "endpoint": 1,
            "bindType": 1,
            "panelBindDevice": {
                "panelBindId": 44,
                "endpoint": 1,
                "deviceId": 353527,
                "type": 1,
                "bindAttributes": "power_1",
                "modelId": "remac.switch.control.101"
            },
            "panelBindScene": null
        },
        {
            "panelBindId": 45,
            "deviceId": 353528,
            "endpoint": 1,
            "bindType": 1,
            "panelBindDevice": {
                "panelBindId": 45,
                "endpoint": 1,
                "deviceId": 353528,
                "type": 1,
                "bindAttributes": "power_1",
                "modelId": "remac.switch.control.101"
            },
            "panelBindScene": null
        },
        {
            "panelBindId": 46,
            "deviceId": 353529,
            "endpoint": 1,
            "bindType": 32,
            "panelBindDevice": null,
            "panelBindScene": {
                "panelBindId": 46,
                "sceneId": 74676
            }
        }
    ]
}

1.15: 获取方案睿控和多控配置列表

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getLayoutPanelBindAndServo

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
id Long 方案id

请求描述

{
  "id":18836
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
panelBindId Long 面板绑定id
deviceId Long 设备id
endpoint Integer 第几路
bindType Integer 类型,1-灯, 16-灯组, 32-场景
type Integer 类型,1-灯,16-灯组
bindAttributes String 属性
modelId String 设备model
sceneId Long 场景id
servoId Long 多控id
isValid Integer 是否可用:0不可用,1可用
deviceId Long 设备id
endpoint Integer 第几路
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "panelBindList": [{
                "panelBindId": 44,
                "deviceId": 353527,
                "endpoint": 1,
                "bindType": 1,
                "panelBindDevice": {
                    "panelBindId": 44,
                    "endpoint": 1,
                    "deviceId": 353527,
                    "type": 1,
                    "bindAttributes": "power_1",
                    "modelId": "remac.switch.control.101"
                },
                "panelBindScene": null
            }
        ],
        "servoList": [{
                "servoId": 6,
                "isValid": 1,
                "servoDeviceVoList": [{
                        "servoId": 6,
                        "deviceId": 353615,
                        "endpoint": 1
                    }, {
                        "servoId": 6,
                        "deviceId": 353613,
                        "endpoint": 1
                    }
                ]
            }
        ]
    }
}

1.16: 获取泊声通道配置列表

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/layout/getLayoutBsChannelConfig

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
id Long 方案id

请求描述

{
  "id":49664
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
layoutProductId Long 设备id
channelId Long 泊声通道id
roomId Integer 房间id
roomName String 房间名称
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": [
        {
            "layoutProductId": 392958,
            "configList": [
                {
                    "channelId": 4,
                    "roomId": 224,
                    "roomName": "餐厅"
                },
                {
                    "channelId": 3,
                    "roomId": 238,
                    "roomName": "厨房"
                },
                {
                    "channelId": 2,
                    "roomId": 223,
                    "roomName": "客厅"
                },
                {
                    "channelId": 1,
                    "roomId": 228,
                    "roomName": "次卧"
                },
                {
                    "channelId": 0,
                    "roomId": 240,
                    "roomName": "玄关"
                }
            ]
        }
    ]
}

2.1: 网关表全量数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllGatewayOption

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_gateway_option表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "id": 21,
                "name": "智能网关一代123[美智网关]1",
                "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2022-01-17/1642390509862/智能网关一代MS-GW15(M).png",
                "mobile": "13922892153",
                "createTime": "2022-01-17 11:35:11",
                "updateTime": "2023-02-10 11:25:46",
                "ztUpdateTime": "2023-02-10 11:25:46",
                "ztCreateTime": "2022-01-17 11:35:11"
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 12
    }
}

2.2: 产品网关关联表全量数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllProductGatewayOptionRelation

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_product_gateway_option_relation表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "productId": 88,
                "gatewayOptionId": 30,
                "createTime": "2022-01-24 11:28:22",
                "updateTime": "2022-07-27 11:15:13",
                "ztUpdateTime": "2022-07-27 11:15:13",
                "ztCreateTime": "2022-01-24 11:28:22"
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 420
    }
}

2.3: 方案产品户型关联表全量数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllProductRoomTypeRelation

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_product_room_type_relation表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "productId": 88,
                "roomTypeId": 1,
                "createTime": "2022-01-24 11:28:22",
                "updateTime": "2022-08-12 15:31:17",
                "ztUpdateTime": "2022-08-12 15:31:17",
                "ztCreateTime": "2022-01-24 11:28:22"
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 822
    }
}

2.4: 标签表全量数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllLabel

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_label 表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "id": 113,
                "name": "全国交付",
                "type": "product",
                "createTime": "2022-05-23 15:26:33",
                "updateTime": "2023-02-22 09:42:48",
                "remark": "22年全国交付的产品",
                "sort": 2,
                "updateBy": "ouyonghua01",
                "ztUpdateTime": "2023-02-22 09:42:48",
                "ztCreateTime": "2022-05-23 15:26:33"
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 44
    }
}

2.5: 标签关联表全量数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllLabelRelation

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_label_relation 表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "productId": 20,
                "labelId": 235,
                "createTime": "2022-10-14 11:25:41",
                "updateTime": "2022-10-14 11:25:41",
                "flag": 4,
                "ztUpdateTime": "2022-10-14 11:25:41",
                "ztCreateTime": "2022-10-14 11:25:41",
                "isDelete": 0
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 16425
    }
}

2.6: 图片库全量数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllPictureUrl

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_picture_url 表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "id": 2,
                "name": "办公",
                "url": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2022-04-15/1649989442127/办公.png",
                "flag": 0,
                "createTime": "2022-04-15 10:24:12",
                "updateTime": "2022-07-27 11:14:37",
                "ztUpdateTime": "2022-07-27 11:14:37",
                "ztCreateTime": "2022-04-15 10:24:12"
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 102
    }
}

2.7: 房间类型表全量数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllRoom

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_room 表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "id": 223,
                "name": "客厅",
                "typeId": 1,
                "createTime": "2022-01-24 09:51:33",
                "updateTime": "2022-08-12 15:41:40",
                "ztUpdateTime": "2022-08-12 15:41:40",
                "ztCreateTime": "2022-01-24 09:51:33"
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 46
    }
}

2.8: 方案户型类型表全量数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllRoomType

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_room_type 表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "id": 1,
                "name": "客餐厅",
                "createTime": "2022-01-24 09:51:24",
                "updateTime": "2023-01-05 11:43:21",
                "sortIndex": 2,
                "ztUpdateTime": "2023-01-05 11:43:21",
                "ztCreateTime": "2022-01-24 09:51:24",
                "flag": 1
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 9
    }
}

2.9: 方案户型类型关联全量数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllRoomTypeRelation

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_room_type_relation 表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "id": 7,
                "roomTypeId": 7,
                "flag": 1,
                "createTime": "2022-04-07 17:06:25",
                "updateTime": "2022-08-12 15:35:10",
                "ztUpdateTime": "2022-08-12 15:35:10",
                "ztCreateTime": "2022-04-07 17:06:25"
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 2218
    }
}

2.10: 场景模板表全量数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllSceneTemplate

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_scene_template 表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "id": 1200,
                "shopId": 0,
                "name": "【勿删】暖衣杀菌",
                "classifyId": 425,
                "icon": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-01-06/1672968273105/blob",
                "mobile": "",
                "description": "暖衣杀菌",
                "createTime": "2023-01-06 09:24:55",
                "updateTime": "2023-06-03 14:10:41",
                "url": "",
                "pictureSize": 0.5,
                "iconSize": 56,
                "extraAttr": "[]",
                "createBy": "18688298849",
                "isPublic": 0,
                "isRecommend": 1,
                "refCount": 105,
                "masterId": 0,
                "isHot": 0,
                "templateId": 628,
                "viewCount": 30,
                "updateBy": "18576530286",
                "openUserId": 134734,
                "copyCount": 0,
                "ztUpdateTime": "2023-06-03 14:10:41",
                "ztCreateTime": "2023-01-06 09:24:55",
                "property": "{\"area\":0,\"doors\":[{\"pos\":{\"x\":-304,\"y\":-40},\"rotation\":0,\"width\":32,\"hpCompId\":311,\"id\":13},{\"pos\":{\"x\":-192,\"y\":4},\"rotation\":0,\"width\":32,\"hpCompId\":302,\"id\":28},{\"pos\":{\"x\":-180,\"y\":-136},\"rotation\":0,\"width\":32,\"hpCompId\":313,\"id\":29},{\"pos\":{\"x\":16,\"y\":8},\"rotation\":0,\"width\":32,\"hpCompId\":301,\"id\":30},{\"pos\":{\"x\":16,\"y\":-48},\"rotation\":0,\"width\":32,\"hpCompId\":304,\"id\":31},{\"pos\":{\"x\":96,\"y\":-48},\"rotation\":0,\"width\":32,\"hpCompId\":304,\"id\":32},{\"pos\":{\"x\":132,\"y\":8},\"rotation\":0,\"width\":32,\"hpCompId\":301,\"id\":33},{\"pos\":{\"x\":236,\"y\":-48},\"rotation\":0,\"width\":32,\"hpCompId\":304,\"id\":34},{\"pos\":{\"x\":-104,\"y\":152},\"rotation\":0,\"width\":32,\"hpCompId\":301,\"id\":35}],\"maxId\":43,\"rooms\":[{\"pos\":{\"x\":-44,\"y\":48},\"rotation\":0,\"name\":\"客厅\",\"typeId\":1,\"hpCompId\":100,\"id\":1,\"cornersPos\":[{\"x\":-136,\"y\":-96},{\"x\":48,\"y\":-96},{\"x\":48,\"y\":104},{\"x\":-136,\"y\":104}],\"roomId\":223},{\"pos\":{\"x\":-128,\"y\":-96},\"rotation\":0,\"name\":\"餐厅\",\"typeId\":1,\"hpCompId\":100,\"id\":2,\"cornersPos\":[{\"x\":-52,\"y\":-92},{\"x\":132,\"y\":-92},{\"x\":132,\"y\":48},{\"x\":-52,\"y\":48}],\"roomId\":224},{\"pos\":{\"x\":-228,\"y\":-32},\"rotation\":0,\"name\":\"玄关\",\"typeId\":7,\"hpCompId\":100,\"id\":3,\"cornersPos\":[{\"x\":-76,\"y\":-16},{\"x\":48,\"y\":-16},{\"x\":48,\"y\":36},{\"x\":-76,\"y\":36}],\"roomId\":240},{\"pos\":{\"x\":-228,\"y\":52},\"rotation\":0,\"name\":\"书房\",\"typeId\":5,\"hpCompId\":100,\"id\":4,\"cornersPos\":[{\"x\":-76,\"y\":-48},{\"x\":48,\"y\":-48},{\"x\":48,\"y\":100},{\"x\":-76,\"y\":100}],\"roomId\":235},{\"pos\":{\"x\":28,\"y\":-16},\"rotation\":0,\"name\":\"过道\",\"typeId\":6,\"hpCompId\":100,\"id\":5,\"cornersPos\":[{\"x\":-24,\"y\":-32},{\"x\":196,\"y\":-32},{\"x\":196,\"y\":24},{\"x\":-24,\"y\":24}],\"roomId\":242},{\"pos\":{\"x\":52,\"y\":104},\"rotation\":0,\"name\":\"次卧\",\"typeId\":2,\"hpCompId\":100,\"id\":6,\"cornersPos\":[{\"x\":-48,\"y\":-96},{\"x\":68,\"y\":-96},{\"x\":68,\"y\":48},{\"x\":-48,\"y\":48}],\"roomId\":228},{\"pos\":{\"x\":52,\"y\":-96},\"rotation\":0,\"name\":\"公卫\",\"typeId\":4,\"hpCompId\":100,\"id\":8,\"cornersPos\":[{\"x\":-48,\"y\":-92},{\"x\":32,\"y\":-92},{\"x\":32,\"y\":48},{\"x\":-48,\"y\":48}],\"roomId\":263},{\"pos\":{\"x\":156,\"y\":-96},\"rotation\":0,\"name\":\"次卧2\",\"typeId\":2,\"hpCompId\":100,\"id\":9,\"cornersPos\":[{\"x\":-72,\"y\":-92},{\"x\":68,\"y\":-92},{\"x\":68,\"y\":48},{\"x\":-72,\"y\":48}],\"roomId\":230},{\"pos\":{\"x\":256,\"y\":-16},\"rotation\":0,\"name\":\"主卫\",\"typeId\":4,\"hpCompId\":100,\"id\":10,\"cornersPos\":[{\"x\":-32,\"y\":-172},{\"x\":48,\"y\":-172},{\"x\":48,\"y\":-32},{\"x\":-32,\"y\":-32}],\"roomId\":261},{\"pos\":{\"x\":168,\"y\":104},\"rotation\":0,\"name\":\"主卧\",\"typeId\":2,\"hpCompId\":112,\"id\":11,\"cornersPos\":[{\"x\":-48,\"y\":-96},{\"x\":56,\"y\":-96},{\"x\":56,\"y\":-152},{\"x\":136,\"y\":-152},{\"x\":136,\"y\":48},{\"x\":-48,\"y\":48}],\"roomId\":225},{\"pos\":{\"x\":-160,\"y\":185},\"rotation\":0,\"name\":\"景观阳台\",\"typeId\":8,\"hpCompId\":100,\"id\":12,\"cornersPos\":[{\"x\":-20,\"y\":-32},{\"x\":164,\"y\":-32},{\"x\":164,\"y\":16},{\"x\":-20,\"y\":16}],\"roomId\":256},{\"pos\":{\"x\":-228,\"y\":-96},\"rotation\":0,\"name\":\"厨房\",\"typeId\":3,\"hpCompId\":100,\"id\":14,\"cornersPos\":[{\"x\":-76,\"y\":-92},{\"x\":48,\"y\":-92},{\"x\":48,\"y\":48},{\"x\":-76,\"y\":48}],\"roomId\":238}],\"connectors\":[{\"pos\":{\"x\":-180,\"y\":-20},\"rotation\":0,\"width\":44,\"hpCompId\":402,\"id\":15},{\"pos\":{\"x\":4,\"y\":-20},\"rotation\":0,\"width\":48,\"hpCompId\":402,\"id\":16},{\"pos\":{\"x\":-88,\"y\":-48},\"rotation\":0,\"width\":176,\"hpCompId\":401,\"id\":17}],\"floorType\":0,\"windows\":[{\"pos\":{\"x\":-242.4908424908425,\"y\":150.91575091575095},\"rotation\":0,\"width\":64,\"hpCompId\":201,\"id\":36},{\"pos\":{\"x\":-248,\"y\":-188},\"rotation\":0,\"width\":64,\"hpCompId\":201,\"id\":37},{\"pos\":{\"x\":-90,\"y\":200},\"rotation\":0,\"width\":148,\"hpCompId\":201,\"id\":38},{\"pos\":{\"x\":60,\"y\":152},\"rotation\":0,\"width\":64,\"hpCompId\":201,\"id\":39},{\"pos\":{\"x\":210,\"y\":152},\"rotation\":0,\"width\":124,\"hpCompId\":201,\"id\":40},{\"pos\":{\"x\":34,\"y\":-188},\"rotation\":0,\"width\":36,\"hpCompId\":201,\"id\":41},{\"pos\":{\"x\":148,\"y\":-188},\"rotation\":0,\"width\":64,\"hpCompId\":201,\"id\":42},{\"pos\":{\"x\":258,\"y\":-188},\"rotation\":0,\"width\":36,\"hpCompId\":201,\"id\":43}],\"version\":\"1.0.1\",\"hpImage\":{\"width\":800,\"thumbUrl\":\"https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-01-06/1672972259446/hp_thumb_628.jpg\",\"url\":\"https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2023-01-06/1672972260067/hp_3d_628.jpg\",\"height\":480}}",
                "guideStatus": 0,
                "price": 0,
                "isTemplate": 1,
                "sceneTemplateId": 1200,
                "enable": 1,
                "stayFlag": 0,
                "isDelete": 0,
                "snapshotId": 44,
                "yaxis": 0,
                "zaxis": 0,
                "xaxis": 0
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 764
    }
}

2.11: 场景模板产品表全量数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllSceneTemplateProduct

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_scene_template_product 表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "id": 3,
                "name": "茂名 水浸探测器",
                "templateId": 7,
                "productId": 293,
                "roomId": 223,
                "order": 1,
                "createTime": "2022-04-11 16:53:26",
                "updateTime": "2023-03-02 11:28:11",
                "ztUpdateTime": "2023-03-02 11:28:16",
                "ztCreateTime": "2022-04-11 16:53:26",
                "containerId": 0,
                "isDelete": 0,
                "uuid": "d23e8d307b0e48e2bb893b94c5abab31",
                "customName": "茂名 水浸探测器",
                "yaxis": 291000,
                "zaxis": 0,
                "xaxis": 501000
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 58678
    }
}

2.12: 场景模板产品组表全量数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllSceneTemplateProductGroup

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_scene_template_product_group 表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "id": 1,
                "name": "12",
                "icon": "https://mideazy-test-public.oss-cn-hangzhou.aliyuncs.com/file/upload/product/2022-04-12/1649732941838/open.png",
                "templateId": 7,
                "roomId": 0,
                "productId": 92,
                "createTime": "2022-04-12 11:09:05",
                "updateTime": "2022-07-27 11:15:04",
                "ztUpdateTime": "2022-07-27 11:15:04",
                "ztCreateTime": "2022-04-12 11:09:05",
                "modelId": null
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 2404
    }
}

2.13: 模板产品组与产品关联表数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryAllSceneTemplateGroupProductRelation

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页的条数

请求描述

{
    "pageNo":1,
    "pageSize":1
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
result List smart_community_sky_plan_scene_template_group_product_relation 表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "groupId": 1,
                "templateProductId": 7,
                "createTime": "2022-04-12 11:09:06",
                "updateTime": "2022-07-27 11:13:41",
                "ztUpdateTime": "2022-07-27 11:13:41",
                "ztCreateTime": "2022-04-12 11:09:06"
            }
        ],
        "pageNo": 1,
        "pageSize": 1,
        "total": 14495
    }
}

2.14: 动态查询数据

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryDynamicsData

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
tableName String 表名
idList List 表id不能为空

请求描述

{
  "tableName":"remac_tx_room",
  "idList": [223]
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
data JSONObject 表数据
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": [{
        "zt_update_time": "2022-08-12 15:41:40",
        "update_time": "2022-08-12 15:41:40",
        "create_time": "2022-01-24 09:51:33",
        "type_id": 1,
        "name": "客厅",
        "zt_create_time": "2022-01-24 09:51:33",
        "id": 223
    }]
}

3.1: 查询房间分类和房间信息

描述

请求信息

HTTP协议:HTTP,HTTPS

uri:/tx/platform-biz/remac-tx-combination/data/queryRoomAndType

HTTP头: bizToken

方法:POST/JSON

请求参数

名称 类型 必填 描述
pageNo Integer 页码
pageSize Integer 每页条数

请求描述

{
  "pageNo":1,
  "pageSize":10
}
返回参数类型

JSON

返回参数

名称 类型 必填 描述
roomTypeId Integer 房间类型id
roomTypeName String 房间类型名称
roomType String 房间类型标识
flag Integer 类型,0-默认状态,1-厅,2-房
id Integer 房间id
name String 房间名称
返回结果示例
{
    "code": "200",
    "message": "请求成功",
    "data": {
        "result": [
            {
                "roomTypeId": 1,
                "roomTypeName": "客餐厅",
                "roomTypeName": "livingroom",
                "flag": 1,
                "roomList": [
                    {
                        "id": 223,
                        "name": "客厅"
                    },
                    {
                        "id": 224,
                        "name": "餐厅"
                    }
                ]
            },
            {
                "roomTypeId": 2,
                "roomTypeName": "卧室",
                "roomTypeName": "bedroom",
                "flag": 2,
                "roomList": [
                    {
                        "id": 225,
                        "name": "主卧"
                    },
                    {
                        "id": 226,
                        "name": "主卧2"
                    }
                ]
            }
        ],
        "pageNo": 1,
        "pageSize": 10,
        "total": 55
    }
}
Copyright © www.remacsmart.com/ 2021 all right reserved,powered by Gitbook该文件修订时间: 2023-10-18 08:42:32

results matching ""

    No results matching ""