secondGatewayDataRequest

secondGatewayDataRequest ^6.8

二代网关:数据传输接口

#请求参数

Prop Type Default Comment
cmd String N/A 功能指令名称
applianceCode String N/A 当前网关ID
topic String N/A
arg Object N/A 请求参数,cmd字段不一样,arg也不一样

#接口调用示例

const params = {
  applianceCode: '123232322', //当前网关ID
  cmd: 'GetApList', //功能指令名称
  arg: {}, //请求参数,cmd字段不一样,arg也不一样
  topic: '',
}
this.$bridge
  .secondGatewayDataRequest(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

#返回参数

  • 成功时返回
Prop Type Default Description
msgid String N/A 消息标识
msg String N/A 错误消息,默认为ok
data Object N/A 数据
errorCode Number N/A 错误码,默认为0
  • data 对象属性
Prop Type Default Description
arg Object N/A 参数
  • arg 对象属性
Prop Type Default Description
resultCode Number N/A 结果码
  • 失败时返回
Prop Type Default Description
msg String N/A 错误消息
errorCode Number N/A 错误码
posted on 2024-12-21 14:46  AtlasLapetos  阅读(12)  评论(0)    收藏  举报