# 设置通用模型 Tag 批量

Dandelion.RtAPI("setGeneralModelTagBatch", params, (res) => {
  console.log(res);
});

# 功能描述

设置通用模型 Tag 批量

let params = [
  {
    id: "",
    tags: [],
    type: 0,
  },
];

# 请求参数:

参数名称 参数说明 是否必须 数据类型
  id id true String
  tags tag 列表 true Array
  type 1 添加、2 删除、0 覆盖 true Number

# 响应示例:

[
  {
    backToInitialView: false,
    bindID: "",
    bindType: "",
    firstView: false,
    floorIndex: 0,
    id: "",
    iveUrl: "",
    loopMove: true,
    movePathId: "",
    moveSpeed: 0,
    moveState: 0,
    name: "",
    parentBuildingID: "",
    position: {
      height: 0,
      latitude: 0,
      longitude: 0,
    },
    resourceId: "",
    tags: [],
    thetherState: false,
    visible: true,
  },
];

# 响应参数:

参数名称 参数说明 类型
backToInitialView 模型是否回到初始位置 Boolean
bindID 绑定的对象 id(如果对象已被绑定会被解绑) String
bindType 绑定的对象类型 String
firstView 是否第一视角观看 Boolean
floorIndex 所在楼层 Number
id id String
iveUrl ive 通用模型路径地址 String
loopMove 是否循环移动 Boolean
movePathId 沿着路径移动得路径 id String
moveSpeed 移动速度 Number
moveState 移动状态(0 播放、1 暂停、2 停止) Number
name 名称 String
parentBuildingID 父建筑 id String
position 位置坐标 Object
  height 高度 Number
  latitude 纬度 Number
  longitude 经度 Number
resourceId 模板 id String
tags tag 列表 Array
thetherState 视点是否跟随 Boolean
visible 显隐状态 Boolean