alink

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

物联API model

https://open.taobao.com/API.htm?docId=28313&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaAlinkDeviceBindAPIRequest

type AlibabaAlinkDeviceBindAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

绑定设备 API请求 alibaba.alink.device.bind

阿里智能解绑设备

func NewAlibabaAlinkDeviceBindRequest

func NewAlibabaAlinkDeviceBindRequest() *AlibabaAlinkDeviceBindAPIRequest

初始化AlibabaAlinkDeviceBindAPIRequest对象

func (AlibabaAlinkDeviceBindAPIRequest) GetApiMethodName

func (r AlibabaAlinkDeviceBindAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaAlinkDeviceBindAPIRequest) GetApiParams

func (r AlibabaAlinkDeviceBindAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaAlinkDeviceBindAPIRequest) GetUuid

Uuid Getter

func (*AlibabaAlinkDeviceBindAPIRequest) SetUuid

func (r *AlibabaAlinkDeviceBindAPIRequest) SetUuid(_uuid string) error

Uuid Setter 设备id

type AlibabaAlinkDeviceBindAPIResponse

type AlibabaAlinkDeviceBindAPIResponse struct {
	model.CommonResponse
	AlibabaAlinkDeviceBindAPIResponseModel
}

绑定设备 API返回值 alibaba.alink.device.bind

阿里智能解绑设备

type AlibabaAlinkDeviceBindAPIResponseModel

type AlibabaAlinkDeviceBindAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_alink_device_bind_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

绑定设备 成功返回结果

type AlibabaAlinkDeviceDetailGetAPIRequest

type AlibabaAlinkDeviceDetailGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取设备详情 API请求 alibaba.alink.device.detail.get

阿里智能获取设备详情

func NewAlibabaAlinkDeviceDetailGetRequest

func NewAlibabaAlinkDeviceDetailGetRequest() *AlibabaAlinkDeviceDetailGetAPIRequest

初始化AlibabaAlinkDeviceDetailGetAPIRequest对象

func (AlibabaAlinkDeviceDetailGetAPIRequest) GetApiMethodName

func (r AlibabaAlinkDeviceDetailGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaAlinkDeviceDetailGetAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaAlinkDeviceDetailGetAPIRequest) GetUuid

Uuid Getter

func (*AlibabaAlinkDeviceDetailGetAPIRequest) SetUuid

Uuid Setter 设备id

type AlibabaAlinkDeviceDetailGetAPIResponse

type AlibabaAlinkDeviceDetailGetAPIResponse struct {
	model.CommonResponse
	AlibabaAlinkDeviceDetailGetAPIResponseModel
}

获取设备详情 API返回值 alibaba.alink.device.detail.get

阿里智能获取设备详情

type AlibabaAlinkDeviceDetailGetAPIResponseModel

type AlibabaAlinkDeviceDetailGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_alink_device_detail_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

获取设备详情 成功返回结果

type AlibabaAlinkDeviceInfoUpdateAPIRequest

type AlibabaAlinkDeviceInfoUpdateAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

更新设备昵称等信息 API请求 alibaba.alink.device.info.update

更新设备昵称等信息

func NewAlibabaAlinkDeviceInfoUpdateRequest

func NewAlibabaAlinkDeviceInfoUpdateRequest() *AlibabaAlinkDeviceInfoUpdateAPIRequest

初始化AlibabaAlinkDeviceInfoUpdateAPIRequest对象

func (AlibabaAlinkDeviceInfoUpdateAPIRequest) GetApiMethodName

func (r AlibabaAlinkDeviceInfoUpdateAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaAlinkDeviceInfoUpdateAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaAlinkDeviceInfoUpdateAPIRequest) GetNickName

NickName Getter

func (AlibabaAlinkDeviceInfoUpdateAPIRequest) GetUuid

Uuid Getter

func (*AlibabaAlinkDeviceInfoUpdateAPIRequest) SetNickName

func (r *AlibabaAlinkDeviceInfoUpdateAPIRequest) SetNickName(_nickName string) error

NickName Setter 设备昵称

func (*AlibabaAlinkDeviceInfoUpdateAPIRequest) SetUuid

Uuid Setter 设备id

type AlibabaAlinkDeviceInfoUpdateAPIResponse

type AlibabaAlinkDeviceInfoUpdateAPIResponse struct {
	model.CommonResponse
	AlibabaAlinkDeviceInfoUpdateAPIResponseModel
}

更新设备昵称等信息 API返回值 alibaba.alink.device.info.update

更新设备昵称等信息

type AlibabaAlinkDeviceInfoUpdateAPIResponseModel

type AlibabaAlinkDeviceInfoUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_alink_device_info_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

更新设备昵称等信息 成功返回结果

type AlibabaAlinkDeviceUnbindAPIRequest

type AlibabaAlinkDeviceUnbindAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

解绑设备 API请求 alibaba.alink.device.unbind

阿里智能解绑设备

func NewAlibabaAlinkDeviceUnbindRequest

func NewAlibabaAlinkDeviceUnbindRequest() *AlibabaAlinkDeviceUnbindAPIRequest

初始化AlibabaAlinkDeviceUnbindAPIRequest对象

func (AlibabaAlinkDeviceUnbindAPIRequest) GetApiMethodName

func (r AlibabaAlinkDeviceUnbindAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaAlinkDeviceUnbindAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaAlinkDeviceUnbindAPIRequest) GetUuid

Uuid Getter

func (*AlibabaAlinkDeviceUnbindAPIRequest) SetUuid

Uuid Setter 设备id

type AlibabaAlinkDeviceUnbindAPIResponse

type AlibabaAlinkDeviceUnbindAPIResponse struct {
	model.CommonResponse
	AlibabaAlinkDeviceUnbindAPIResponseModel
}

解绑设备 API返回值 alibaba.alink.device.unbind

阿里智能解绑设备

type AlibabaAlinkDeviceUnbindAPIResponseModel

type AlibabaAlinkDeviceUnbindAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_alink_device_unbind_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

解绑设备 成功返回结果

type AlibabaAlinkDeviceUnifyStatusGetAPIRequest

type AlibabaAlinkDeviceUnifyStatusGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

查询设备标准属性最新状态 API请求 alibaba.alink.device.unify.status.get

查询设备最新标准属性状态

func NewAlibabaAlinkDeviceUnifyStatusGetRequest

func NewAlibabaAlinkDeviceUnifyStatusGetRequest() *AlibabaAlinkDeviceUnifyStatusGetAPIRequest

初始化AlibabaAlinkDeviceUnifyStatusGetAPIRequest对象

func (AlibabaAlinkDeviceUnifyStatusGetAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaAlinkDeviceUnifyStatusGetAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaAlinkDeviceUnifyStatusGetAPIRequest) GetUuid

Uuid Getter

func (*AlibabaAlinkDeviceUnifyStatusGetAPIRequest) SetUuid

Uuid Setter 设备id

type AlibabaAlinkDeviceUnifyStatusGetAPIResponse

type AlibabaAlinkDeviceUnifyStatusGetAPIResponse struct {
	model.CommonResponse
	AlibabaAlinkDeviceUnifyStatusGetAPIResponseModel
}

查询设备标准属性最新状态 API返回值 alibaba.alink.device.unify.status.get

查询设备最新标准属性状态

type AlibabaAlinkDeviceUnifyStatusGetAPIResponseModel

type AlibabaAlinkDeviceUnifyStatusGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_alink_device_unify_status_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

查询设备标准属性最新状态 成功返回结果

type AlibabaAlinkDeviceUnifyStatusSetAPIRequest

type AlibabaAlinkDeviceUnifyStatusSetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

设置设备标准属性状态 API请求 alibaba.alink.device.unify.status.set

操作用户绑定的设备

func NewAlibabaAlinkDeviceUnifyStatusSetRequest

func NewAlibabaAlinkDeviceUnifyStatusSetRequest() *AlibabaAlinkDeviceUnifyStatusSetAPIRequest

初始化AlibabaAlinkDeviceUnifyStatusSetAPIRequest对象

func (AlibabaAlinkDeviceUnifyStatusSetAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaAlinkDeviceUnifyStatusSetAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaAlinkDeviceUnifyStatusSetAPIRequest) GetInstructions

Instructions Getter

func (AlibabaAlinkDeviceUnifyStatusSetAPIRequest) GetUuid

Uuid Getter

func (*AlibabaAlinkDeviceUnifyStatusSetAPIRequest) SetInstructions

func (r *AlibabaAlinkDeviceUnifyStatusSetAPIRequest) SetInstructions(_instructions string) error

Instructions Setter 设备的设置参数数据

func (*AlibabaAlinkDeviceUnifyStatusSetAPIRequest) SetUuid

Uuid Setter uuid

type AlibabaAlinkDeviceUnifyStatusSetAPIResponse

type AlibabaAlinkDeviceUnifyStatusSetAPIResponse struct {
	model.CommonResponse
	AlibabaAlinkDeviceUnifyStatusSetAPIResponseModel
}

设置设备标准属性状态 API返回值 alibaba.alink.device.unify.status.set

操作用户绑定的设备

type AlibabaAlinkDeviceUnifyStatusSetAPIResponseModel

type AlibabaAlinkDeviceUnifyStatusSetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_alink_device_unify_status_set_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

设置设备标准属性状态 成功返回结果

type AlibabaAlinkMessageConfigListAPIRequest

type AlibabaAlinkMessageConfigListAPIRequest struct {
	model.Params
}

查询消息开关配置列表 API请求 alibaba.alink.message.config.list

阿里智能获取消息开关配置列表

func NewAlibabaAlinkMessageConfigListRequest

func NewAlibabaAlinkMessageConfigListRequest() *AlibabaAlinkMessageConfigListAPIRequest

初始化AlibabaAlinkMessageConfigListAPIRequest对象

func (AlibabaAlinkMessageConfigListAPIRequest) GetApiMethodName

func (r AlibabaAlinkMessageConfigListAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaAlinkMessageConfigListAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

type AlibabaAlinkMessageConfigListAPIResponse

type AlibabaAlinkMessageConfigListAPIResponse struct {
	model.CommonResponse
	AlibabaAlinkMessageConfigListAPIResponseModel
}

查询消息开关配置列表 API返回值 alibaba.alink.message.config.list

阿里智能获取消息开关配置列表

type AlibabaAlinkMessageConfigListAPIResponseModel

type AlibabaAlinkMessageConfigListAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_alink_message_config_list_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

查询消息开关配置列表 成功返回结果

type AlibabaAlinkMessageConfigSetAPIRequest

type AlibabaAlinkMessageConfigSetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

消息提醒开关 API请求 alibaba.alink.message.config.set

阿里智能消息开关

func NewAlibabaAlinkMessageConfigSetRequest

func NewAlibabaAlinkMessageConfigSetRequest() *AlibabaAlinkMessageConfigSetAPIRequest

初始化AlibabaAlinkMessageConfigSetAPIRequest对象

func (AlibabaAlinkMessageConfigSetAPIRequest) GetApiMethodName

func (r AlibabaAlinkMessageConfigSetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaAlinkMessageConfigSetAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaAlinkMessageConfigSetAPIRequest) GetPushDisabled

func (r AlibabaAlinkMessageConfigSetAPIRequest) GetPushDisabled() string

PushDisabled Getter

func (AlibabaAlinkMessageConfigSetAPIRequest) GetUuid

Uuid Getter

func (*AlibabaAlinkMessageConfigSetAPIRequest) SetPushDisabled

func (r *AlibabaAlinkMessageConfigSetAPIRequest) SetPushDisabled(_pushDisabled string) error

PushDisabled Setter 0:开启,1:关闭

func (*AlibabaAlinkMessageConfigSetAPIRequest) SetUuid

Uuid Setter 设备id

type AlibabaAlinkMessageConfigSetAPIResponse

type AlibabaAlinkMessageConfigSetAPIResponse struct {
	model.CommonResponse
	AlibabaAlinkMessageConfigSetAPIResponseModel
}

消息提醒开关 API返回值 alibaba.alink.message.config.set

阿里智能消息开关

type AlibabaAlinkMessageConfigSetAPIResponseModel

type AlibabaAlinkMessageConfigSetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_alink_message_config_set_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

消息提醒开关 成功返回结果

type AlibabaAlinkMessageHistoryCountAPIRequest

type AlibabaAlinkMessageHistoryCountAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

查询消息总数 API请求 alibaba.alink.message.history.count

查询消息总数

func NewAlibabaAlinkMessageHistoryCountRequest

func NewAlibabaAlinkMessageHistoryCountRequest() *AlibabaAlinkMessageHistoryCountAPIRequest

初始化AlibabaAlinkMessageHistoryCountAPIRequest对象

func (AlibabaAlinkMessageHistoryCountAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaAlinkMessageHistoryCountAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaAlinkMessageHistoryCountAPIRequest) GetLevel

Level Getter

func (AlibabaAlinkMessageHistoryCountAPIRequest) GetLimit

Limit Getter

func (AlibabaAlinkMessageHistoryCountAPIRequest) GetOffset

Offset Getter

func (AlibabaAlinkMessageHistoryCountAPIRequest) GetStatus

Status Getter

func (AlibabaAlinkMessageHistoryCountAPIRequest) GetType

Type Getter

func (AlibabaAlinkMessageHistoryCountAPIRequest) GetUuid

Uuid Getter

func (*AlibabaAlinkMessageHistoryCountAPIRequest) SetLevel

Level Setter 消息级别 1:普通;2:重要消息

func (*AlibabaAlinkMessageHistoryCountAPIRequest) SetLimit

Limit Setter 查询多少条数据

func (*AlibabaAlinkMessageHistoryCountAPIRequest) SetOffset

Offset Setter 偏移量

func (*AlibabaAlinkMessageHistoryCountAPIRequest) SetStatus

Status Setter 消息状态,0:未读;1:已读

func (*AlibabaAlinkMessageHistoryCountAPIRequest) SetType

Type Setter 消息类型 1:通知, 2:报警, 3:运营,5:语音控制机器人响应,6:语音控

func (*AlibabaAlinkMessageHistoryCountAPIRequest) SetUuid

Uuid Setter 设备id

type AlibabaAlinkMessageHistoryCountAPIResponse

type AlibabaAlinkMessageHistoryCountAPIResponse struct {
	model.CommonResponse
	AlibabaAlinkMessageHistoryCountAPIResponseModel
}

查询消息总数 API返回值 alibaba.alink.message.history.count

查询消息总数

type AlibabaAlinkMessageHistoryCountAPIResponseModel

type AlibabaAlinkMessageHistoryCountAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_alink_message_history_count_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

查询消息总数 成功返回结果

type AlibabaAlinkMessageHistoryListAPIRequest

type AlibabaAlinkMessageHistoryListAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

查询消息列表 API请求 alibaba.alink.message.history.list

查询消息列表

func NewAlibabaAlinkMessageHistoryListRequest

func NewAlibabaAlinkMessageHistoryListRequest() *AlibabaAlinkMessageHistoryListAPIRequest

初始化AlibabaAlinkMessageHistoryListAPIRequest对象

func (AlibabaAlinkMessageHistoryListAPIRequest) GetApiMethodName

func (r AlibabaAlinkMessageHistoryListAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaAlinkMessageHistoryListAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaAlinkMessageHistoryListAPIRequest) GetLevel

Level Getter

func (AlibabaAlinkMessageHistoryListAPIRequest) GetLimit

Limit Getter

func (AlibabaAlinkMessageHistoryListAPIRequest) GetOffset

Offset Getter

func (AlibabaAlinkMessageHistoryListAPIRequest) GetStatus

Status Getter

func (AlibabaAlinkMessageHistoryListAPIRequest) GetType

Type Getter

func (AlibabaAlinkMessageHistoryListAPIRequest) GetUuid

Uuid Getter

func (*AlibabaAlinkMessageHistoryListAPIRequest) SetLevel

Level Setter 消息级别 1:普通;2:重要消息

func (*AlibabaAlinkMessageHistoryListAPIRequest) SetLimit

Limit Setter 查询多少条数据

func (*AlibabaAlinkMessageHistoryListAPIRequest) SetOffset

Offset Setter 偏移量

func (*AlibabaAlinkMessageHistoryListAPIRequest) SetStatus

Status Setter 消息状态,0:未读;1:已读

func (*AlibabaAlinkMessageHistoryListAPIRequest) SetType

Type Setter 消息类型 1:通知, 2:报警, 3:运营,5:语音控制机器人响应,6:语音控

func (*AlibabaAlinkMessageHistoryListAPIRequest) SetUuid

Uuid Setter 设备id

type AlibabaAlinkMessageHistoryListAPIResponse

type AlibabaAlinkMessageHistoryListAPIResponse struct {
	model.CommonResponse
	AlibabaAlinkMessageHistoryListAPIResponseModel
}

查询消息列表 API返回值 alibaba.alink.message.history.list

查询消息列表

type AlibabaAlinkMessageHistoryListAPIResponseModel

type AlibabaAlinkMessageHistoryListAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_alink_message_history_list_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

查询消息列表 成功返回结果

type AliyunAlinkDataStatReportAPIRequest

type AliyunAlinkDataStatReportAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

外部离线统计数据上报 API请求 aliyun.alink.data.stat.report

外部合作厂商上报设备的明细数据,或者离线统计数据。

func NewAliyunAlinkDataStatReportRequest

func NewAliyunAlinkDataStatReportRequest() *AliyunAlinkDataStatReportAPIRequest

初始化AliyunAlinkDataStatReportAPIRequest对象

func (AliyunAlinkDataStatReportAPIRequest) GetApiMethodName

func (r AliyunAlinkDataStatReportAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AliyunAlinkDataStatReportAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AliyunAlinkDataStatReportAPIRequest) GetParamBean

ParamBean Getter

func (*AliyunAlinkDataStatReportAPIRequest) SetParamBean

func (r *AliyunAlinkDataStatReportAPIRequest) SetParamBean(_paramBean *OuterDataBean) error

ParamBean Setter 入参对象

type AliyunAlinkDataStatReportAPIResponse

type AliyunAlinkDataStatReportAPIResponse struct {
	model.CommonResponse
	AliyunAlinkDataStatReportAPIResponseModel
}

外部离线统计数据上报 API返回值 aliyun.alink.data.stat.report

外部合作厂商上报设备的明细数据,或者离线统计数据。

type AliyunAlinkDataStatReportAPIResponseModel

type AliyunAlinkDataStatReportAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_alink_data_stat_report_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误消息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 数据入库状态
	Module bool `json:"module,omitempty" xml:"module,omitempty"`
	// 状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 调用是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

外部离线统计数据上报 成功返回结果

type AliyunAlinkOpendataUrlQueryAPIRequest

type AliyunAlinkOpendataUrlQueryAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

开放数据授权访问URL查询 API请求 aliyun.alink.opendata.url.query

厂商数据授权访问URL查询

func NewAliyunAlinkOpendataUrlQueryRequest

func NewAliyunAlinkOpendataUrlQueryRequest() *AliyunAlinkOpendataUrlQueryAPIRequest

初始化AliyunAlinkOpendataUrlQueryAPIRequest对象

func (AliyunAlinkOpendataUrlQueryAPIRequest) GetAccessKey

AccessKey Getter

func (AliyunAlinkOpendataUrlQueryAPIRequest) GetApiMethodName

func (r AliyunAlinkOpendataUrlQueryAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AliyunAlinkOpendataUrlQueryAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AliyunAlinkOpendataUrlQueryAPIRequest) GetBizDay

BizDay Getter

func (AliyunAlinkOpendataUrlQueryAPIRequest) GetBizHour

BizHour Getter

func (AliyunAlinkOpendataUrlQueryAPIRequest) GetDataType

DataType Getter

func (*AliyunAlinkOpendataUrlQueryAPIRequest) SetAccessKey

func (r *AliyunAlinkOpendataUrlQueryAPIRequest) SetAccessKey(_accessKey string) error

AccessKey Setter 授权key,厂家在物联平台申请的云端授权key

func (*AliyunAlinkOpendataUrlQueryAPIRequest) SetBizDay

func (r *AliyunAlinkOpendataUrlQueryAPIRequest) SetBizDay(_bizDay string) error

BizDay Setter 数据日期,格式:yyyyMMdd

func (*AliyunAlinkOpendataUrlQueryAPIRequest) SetBizHour

func (r *AliyunAlinkOpendataUrlQueryAPIRequest) SetBizHour(_bizHour int64) error

BizHour Setter 数据时点,范围[0,23]

func (*AliyunAlinkOpendataUrlQueryAPIRequest) SetDataType

func (r *AliyunAlinkOpendataUrlQueryAPIRequest) SetDataType(_dataType int64) error

DataType Setter 数据类型,1:设备数据,2:用户操作数据

type AliyunAlinkOpendataUrlQueryAPIResponse

type AliyunAlinkOpendataUrlQueryAPIResponse struct {
	model.CommonResponse
	AliyunAlinkOpendataUrlQueryAPIResponseModel
}

开放数据授权访问URL查询 API返回值 aliyun.alink.opendata.url.query

厂商数据授权访问URL查询

type AliyunAlinkOpendataUrlQueryAPIResponseModel

type AliyunAlinkOpendataUrlQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_alink_opendata_url_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 调用是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 接口描述
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 授权url
	Module []string `json:"module,omitempty" xml:"module>string,omitempty"`
}

开放数据授权访问URL查询 成功返回结果

type OuterDataBean

type OuterDataBean struct {
	// 上报内容,可以是数字,或者json格式文本
	Content string `json:"content,omitempty" xml:"content,omitempty"`
	// 产品型号,在入驻时生成的
	Model string `json:"model,omitempty" xml:"model,omitempty"`
	// 数据类型,detail:明细数据,stat:统计数据
	DataType string `json:"data_type,omitempty" xml:"data_type,omitempty"`
	// 产品型号key,和model对应,在注册产品型号时分配
	ModelKey string `json:"model_key,omitempty" xml:"model_key,omitempty"`
	// 数据产生的时间
	StatTime string `json:"stat_time,omitempty" xml:"stat_time,omitempty"`
	// 外部数据的唯一id,比如:设备mac、sn等表示设备唯一性的数据,或者表示该统计数据的自定义id
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
}

OuterDataBean

type TopServiceResult

type TopServiceResult struct {
	// 接口返回数据
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// message
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 详细描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
}

TopServiceResult

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL