ioti

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

IoTI API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfigResponse

type AgentConfigResponse struct {
	// 消息体
	Result *ConfigResult `json:"result,omitempty" xml:"result,omitempty"`
	// 调用方法
	Method string `json:"method,omitempty" xml:"method,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 返回编码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 返回消息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

AgentConfigResponse

type AlibabaItAlbumDeviceSendimageAPIRequest

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

相框设备厂测刷图接口 API请求 alibaba.it.album.device.sendimage

提供传入电子相框设备mac,mac需属于厂测白名单设备,将设备刷新为系统默认的厂测图片

func NewAlibabaItAlbumDeviceSendimageRequest

func NewAlibabaItAlbumDeviceSendimageRequest() *AlibabaItAlbumDeviceSendimageAPIRequest

初始化AlibabaItAlbumDeviceSendimageAPIRequest对象

func (AlibabaItAlbumDeviceSendimageAPIRequest) GetApiMethodName

func (r AlibabaItAlbumDeviceSendimageAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaItAlbumDeviceSendimageAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaItAlbumDeviceSendimageAPIRequest) GetMac

Mac Getter

func (*AlibabaItAlbumDeviceSendimageAPIRequest) SetMac

Mac Setter 下发图片mac地址

type AlibabaItAlbumDeviceSendimageAPIResponse

type AlibabaItAlbumDeviceSendimageAPIResponse struct {
	model.CommonResponse
	AlibabaItAlbumDeviceSendimageAPIResponseModel
}

相框设备厂测刷图接口 API返回值 alibaba.it.album.device.sendimage

提供传入电子相框设备mac,mac需属于厂测白名单设备,将设备刷新为系统默认的厂测图片

type AlibabaItAlbumDeviceSendimageAPIResponseModel

type AlibabaItAlbumDeviceSendimageAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_album_device_sendimage_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回错误码与参数
	Resultmsg string `json:"resultmsg,omitempty" xml:"resultmsg,omitempty"`
}

相框设备厂测刷图接口 成功返回结果

type AlibabaItCloudliveGetagentconfigAPIRequest

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

线上巡店Agent获取配置 API请求 alibaba.it.cloudlive.getagentconfig

线上巡店应用,外部Agent设备获取设备配置信息,根据配置信息链接mqtt,跟云端进行进一步的消息通信。

func NewAlibabaItCloudliveGetagentconfigRequest

func NewAlibabaItCloudliveGetagentconfigRequest() *AlibabaItCloudliveGetagentconfigAPIRequest

初始化AlibabaItCloudliveGetagentconfigAPIRequest对象

func (AlibabaItCloudliveGetagentconfigAPIRequest) GetAgentId

AgentId Getter

func (AlibabaItCloudliveGetagentconfigAPIRequest) GetAgentIp

AgentIp Getter

func (AlibabaItCloudliveGetagentconfigAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaItCloudliveGetagentconfigAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaItCloudliveGetagentconfigAPIRequest) GetSignature

Signature Getter

func (AlibabaItCloudliveGetagentconfigAPIRequest) GetTimeStamp

TimeStamp Getter

func (*AlibabaItCloudliveGetagentconfigAPIRequest) SetAgentId

AgentId Setter agent标识信息

func (*AlibabaItCloudliveGetagentconfigAPIRequest) SetAgentIp

AgentIp Setter 设备所在IP地址

func (*AlibabaItCloudliveGetagentconfigAPIRequest) SetSignature

func (r *AlibabaItCloudliveGetagentconfigAPIRequest) SetSignature(_signature string) error

Signature Setter 签名

func (*AlibabaItCloudliveGetagentconfigAPIRequest) SetTimeStamp

func (r *AlibabaItCloudliveGetagentconfigAPIRequest) SetTimeStamp(_timeStamp int64) error

TimeStamp Setter 时间戳

type AlibabaItCloudliveGetagentconfigAPIResponse

type AlibabaItCloudliveGetagentconfigAPIResponse struct {
	model.CommonResponse
	AlibabaItCloudliveGetagentconfigAPIResponseModel
}

线上巡店Agent获取配置 API返回值 alibaba.it.cloudlive.getagentconfig

线上巡店应用,外部Agent设备获取设备配置信息,根据配置信息链接mqtt,跟云端进行进一步的消息通信。

type AlibabaItCloudliveGetagentconfigAPIResponseModel

type AlibabaItCloudliveGetagentconfigAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_cloudlive_getagentconfig_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 消息内容
	RespContent *AgentConfigResponse `json:"resp_content,omitempty" xml:"resp_content,omitempty"`
}

线上巡店Agent获取配置 成功返回结果

type AlibabaItEslEslimageSendimageAPIRequest

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

下发厂测初始化图片 API请求 alibaba.it.esl.eslimage.sendimage

工厂对生产出的电子价签进行全流程功能测试,能将出场图片通过ESL系统初始化到电子价签中

func NewAlibabaItEslEslimageSendimageRequest

func NewAlibabaItEslEslimageSendimageRequest() *AlibabaItEslEslimageSendimageAPIRequest

初始化AlibabaItEslEslimageSendimageAPIRequest对象

func (AlibabaItEslEslimageSendimageAPIRequest) GetApiMethodName

func (r AlibabaItEslEslimageSendimageAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaItEslEslimageSendimageAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaItEslEslimageSendimageAPIRequest) GetMac

Mac Getter

func (*AlibabaItEslEslimageSendimageAPIRequest) SetMac

Mac Setter 价签地址

type AlibabaItEslEslimageSendimageAPIResponse

type AlibabaItEslEslimageSendimageAPIResponse struct {
	model.CommonResponse
	AlibabaItEslEslimageSendimageAPIResponseModel
}

下发厂测初始化图片 API返回值 alibaba.it.esl.eslimage.sendimage

工厂对生产出的电子价签进行全流程功能测试,能将出场图片通过ESL系统初始化到电子价签中

type AlibabaItEslEslimageSendimageAPIResponseModel

type AlibabaItEslEslimageSendimageAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_esl_eslimage_sendimage_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// resultmsg
	Resultmsg string `json:"resultmsg,omitempty" xml:"resultmsg,omitempty"`
}

下发厂测初始化图片 成功返回结果

type AlibabaItEslEslimageShowimagecommonAPIRequest

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

对混合云提供的刷图接口 API请求 alibaba.it.esl.eslimage.showimagecommon

混合云使用,提供给isv和我们混合云环境部署的应用刷图

func NewAlibabaItEslEslimageShowimagecommonRequest

func NewAlibabaItEslEslimageShowimagecommonRequest() *AlibabaItEslEslimageShowimagecommonAPIRequest

初始化AlibabaItEslEslimageShowimagecommonAPIRequest对象

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetContent

Content Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetContent2

Content2 Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetIsCompress

IsCompress Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetIsManual

IsManual Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetMac

Mac Getter

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetContent

Content Setter 图片2的base64编码,图片要和价签大小一致

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetContent2

Content2 Setter 图片的base64编码,图片要和价签大小一致

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetIsCompress

func (r *AlibabaItEslEslimageShowimagecommonAPIRequest) SetIsCompress(_isCompress string) error

IsCompress Setter 是否压缩,默认不传,字符串:yes,no

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetIsManual

IsManual Setter 是否手动刷图,默认不传,字符串:true,false

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetMac

Mac Setter ma地址

type AlibabaItEslEslimageShowimagecommonAPIResponse

type AlibabaItEslEslimageShowimagecommonAPIResponse struct {
	model.CommonResponse
	AlibabaItEslEslimageShowimagecommonAPIResponseModel
}

对混合云提供的刷图接口 API返回值 alibaba.it.esl.eslimage.showimagecommon

混合云使用,提供给isv和我们混合云环境部署的应用刷图

type AlibabaItEslEslimageShowimagecommonAPIResponseModel

type AlibabaItEslEslimageShowimagecommonAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_esl_eslimage_showimagecommon_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// resultmsg
	Resultmsg string `json:"resultmsg,omitempty" xml:"resultmsg,omitempty"`
}

对混合云提供的刷图接口 成功返回结果

type AlibabaItEslSendledAPIRequest

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

厂测LED控制 API请求 alibaba.it.esl.sendled

针对厂测生产的的价签,增加led闪灯的接口,进行led 闪灯测试

func NewAlibabaItEslSendledRequest

func NewAlibabaItEslSendledRequest() *AlibabaItEslSendledAPIRequest

初始化AlibabaItEslSendledAPIRequest对象

func (AlibabaItEslSendledAPIRequest) GetApiMethodName

func (r AlibabaItEslSendledAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaItEslSendledAPIRequest) GetApiParams

func (r AlibabaItEslSendledAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaItEslSendledAPIRequest) GetMacAp

MacAp Getter

func (AlibabaItEslSendledAPIRequest) GetType

Type Getter

func (*AlibabaItEslSendledAPIRequest) SetMacAp

func (r *AlibabaItEslSendledAPIRequest) SetMacAp(_macAp string) error

MacAp Setter mac

func (*AlibabaItEslSendledAPIRequest) SetType

func (r *AlibabaItEslSendledAPIRequest) SetType(_type string) error

Type Setter 0、1、2、3:关蓝绿红

type AlibabaItEslSendledAPIResponse

type AlibabaItEslSendledAPIResponse struct {
	model.CommonResponse
	AlibabaItEslSendledAPIResponseModel
}

厂测LED控制 API返回值 alibaba.it.esl.sendled

针对厂测生产的的价签,增加led闪灯的接口,进行led 闪灯测试

type AlibabaItEslSendledAPIResponseModel

type AlibabaItEslSendledAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_esl_sendled_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// Can not find Corresponding AP MAC with ESL
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

厂测LED控制 成功返回结果

type AlibabaItEslSendotaAPIRequest

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

电子价签ota接口 API请求 alibaba.it.esl.sendota

厂测接口,电子价签ota接口

func NewAlibabaItEslSendotaRequest

func NewAlibabaItEslSendotaRequest() *AlibabaItEslSendotaAPIRequest

初始化AlibabaItEslSendotaAPIRequest对象

func (AlibabaItEslSendotaAPIRequest) GetApiMethodName

func (r AlibabaItEslSendotaAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaItEslSendotaAPIRequest) GetApiParams

func (r AlibabaItEslSendotaAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaItEslSendotaAPIRequest) GetMacAp

MacAp Getter

func (AlibabaItEslSendotaAPIRequest) GetOtaDataBase64String

func (r AlibabaItEslSendotaAPIRequest) GetOtaDataBase64String() string

OtaDataBase64String Getter

func (*AlibabaItEslSendotaAPIRequest) SetMacAp

func (r *AlibabaItEslSendotaAPIRequest) SetMacAp(_macAp string) error

MacAp Setter mac

func (*AlibabaItEslSendotaAPIRequest) SetOtaDataBase64String

func (r *AlibabaItEslSendotaAPIRequest) SetOtaDataBase64String(_otaDataBase64String string) error

OtaDataBase64String Setter base64的ota包

type AlibabaItEslSendotaAPIResponse

type AlibabaItEslSendotaAPIResponse struct {
	model.CommonResponse
	AlibabaItEslSendotaAPIResponseModel
}

电子价签ota接口 API返回值 alibaba.it.esl.sendota

厂测接口,电子价签ota接口

type AlibabaItEslSendotaAPIResponseModel

type AlibabaItEslSendotaAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_esl_sendota_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// Can not find Corresponding AP MAC with ESL
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

电子价签ota接口 成功返回结果

type ConfigResult

type ConfigResult struct {
	// agent标识
	AgentId string `json:"agent_id,omitempty" xml:"agent_id,omitempty"`
	// 连接客户端id
	ClientId string `json:"client_id,omitempty" xml:"client_id,omitempty"`
	// 是否保活
	KeepAlive int64 `json:"keep_alive,omitempty" xml:"keep_alive,omitempty"`
	// 签名
	Signature string `json:"signature,omitempty" xml:"signature,omitempty"`
	// IPC列表
	Ipcs []string `json:"ipcs,omitempty" xml:"ipcs>string,omitempty"`
	// 最大推流数量
	MaxStreamNumber int64 `json:"max_stream_number,omitempty" xml:"max_stream_number,omitempty"`
	// 上报消息topic
	MqttUpTopic string `json:"mqtt_up_topic,omitempty" xml:"mqtt_up_topic,omitempty"`
	// 通道类型
	ChannelType string `json:"channel_type,omitempty" xml:"channel_type,omitempty"`
	// broker代理地址
	BrokerUrl string `json:"broker_url,omitempty" xml:"broker_url,omitempty"`
	// 上报时间间隔
	ReportInterval int64 `json:"report_interval,omitempty" xml:"report_interval,omitempty"`
	// 下发消息topic
	MqttDownTopic string `json:"mqtt_down_topic,omitempty" xml:"mqtt_down_topic,omitempty"`
	// 访问accesskey
	AccessKey string `json:"access_key,omitempty" xml:"access_key,omitempty"`
	// CPU上线
	CpuUpperLimit string `json:"cpu_upper_limit,omitempty" xml:"cpu_upper_limit,omitempty"`
}

ConfigResult

Jump to

Keyboard shortcuts

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