# commondRequest

通用网络请求接口方式(参考猎户云sdk文档)

# 接口调用示例

soundModule.commondRequest(param, (resp) => {
    this.$alert("成功")
}, (error) => {
    this.$toast("失败")
})
1
2
3
4
5

# 请求参数

Prop Type Required Default Description
param Object Y {}
属性:
actionCode:{
Type: String,
Default: N/A,
Description: action码
}
actionType:{
Type: String,
Default: N/A,
Description: action类型
}
object:{
Type: Obecjt,
Default: N/A,
Description: json对象 参数参考猎户云的sdk文档
}
请求参数

# 返回参数

  • 成功时返回
Prop Type Default Description
data Object N/A json字符串
  • 失败时返回
Prop Type Default Description
errorCode Number N/A 失败错误码
errorMessage String N/A 错误消息(如有)
Last Updated: 10/26/2020, 3:47:36 PM