updateRoomInfo 更新房间信息
updateRoomInfo ^7.9
更新房间信息
#请求参数
| Prop | Type | Default | Comment |
|---|---|---|---|
| homeId | String | N/A | 家庭 id 必填 |
| roomId | String | N/A | 房间 id, 必须 |
| name | String | N/A | 必须, 房间名称 |
| des | String | N/A | 非必须,描述 |
| icon | String | N/A | 非必须 对应的图片 |
#icon 的映射图标请参考
#引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
#接口调用示例
const params = {
homeId: '家庭id 必填',
roomId: '房间id, 必须',
name: '必须, 房间名称',
des: '非必须,描述',
icon: '非必须 图片(1-28)',
}
bridge
.updateRoomInfo(params)
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
#接口返回示例
{
"code": "0",
"msg": "更新房间信息成功"
}
浙公网安备 33010602011771号