createRoom 创建房间
createRoom ^7.9
创建房间
#请求参数
| Prop | Type | Default | Comment | 
|---|---|---|---|
| homeId | String | N/A | 家庭id 必填 | 
| name | String | N/A | 必须, 房间名称 | 
| des | String | N/A | 非必须,描述 | 
| icon | String | N/A | 必须,图标(1-28),现在设计为云端只保存图标的索引,app映射为具体的图标 | 
#icon的映射图标请参考
#接口调用示例
const params = {
    "homeId": "家庭id 必填",
    "name": "必须, 房间名称",
    "des": "非必须,描述",
    "icon": "必须,图标(1-28),现在设计为云端只保存图标的索引,app映射为具体的图标 2"
}
this.$bridge
  .createRoom(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })
#接口返回示例
{
    "roomInfo": {
        "homegroupId": "123412515",
        "id": "123124",
        "name": "room1",
        "desc": "",
        "icon": "2"
    }
}
                    
                
                
            
        
浙公网安备 33010602011771号