ioti

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ioti 包含IoTI API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaItAlbumDeviceSendimageAPIRequest

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

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

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

func NewAlibabaItAlbumDeviceSendimageRequest

func NewAlibabaItAlbumDeviceSendimageRequest() *AlibabaItAlbumDeviceSendimageAPIRequest

NewAlibabaItAlbumDeviceSendimageRequest 初始化AlibabaItAlbumDeviceSendimageAPIRequest对象

func (AlibabaItAlbumDeviceSendimageAPIRequest) GetApiMethodName

func (r AlibabaItAlbumDeviceSendimageAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItAlbumDeviceSendimageAPIRequest) GetApiParams

func (r AlibabaItAlbumDeviceSendimageAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItAlbumDeviceSendimageAPIRequest) GetMac

GetMac Mac Getter

func (AlibabaItAlbumDeviceSendimageAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaItAlbumDeviceSendimageAPIRequest) SetMac

SetMac is Mac Setter 下发图片mac地址

type AlibabaItAlbumDeviceSendimageAPIResponse

type AlibabaItAlbumDeviceSendimageAPIResponse struct {
	model.CommonResponse
	AlibabaItAlbumDeviceSendimageAPIResponseModel
}

AlibabaItAlbumDeviceSendimageAPIResponse 相框设备厂测刷图接口 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"`
}

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

type AlibabaItEslEslimageSendimageAPIRequest

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

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

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

func NewAlibabaItEslEslimageSendimageRequest

func NewAlibabaItEslEslimageSendimageRequest() *AlibabaItEslEslimageSendimageAPIRequest

NewAlibabaItEslEslimageSendimageRequest 初始化AlibabaItEslEslimageSendimageAPIRequest对象

func (AlibabaItEslEslimageSendimageAPIRequest) GetApiMethodName

func (r AlibabaItEslEslimageSendimageAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItEslEslimageSendimageAPIRequest) GetApiParams

func (r AlibabaItEslEslimageSendimageAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItEslEslimageSendimageAPIRequest) GetMac

GetMac Mac Getter

func (AlibabaItEslEslimageSendimageAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaItEslEslimageSendimageAPIRequest) SetMac

SetMac is Mac Setter 价签地址

type AlibabaItEslEslimageSendimageAPIResponse

type AlibabaItEslEslimageSendimageAPIResponse struct {
	model.CommonResponse
	AlibabaItEslEslimageSendimageAPIResponseModel
}

AlibabaItEslEslimageSendimageAPIResponse 下发厂测初始化图片 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"`
}

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

type AlibabaItEslEslimageShowimagecommonAPIRequest

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

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

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

func NewAlibabaItEslEslimageShowimagecommonRequest

func NewAlibabaItEslEslimageShowimagecommonRequest() *AlibabaItEslEslimageShowimagecommonAPIRequest

NewAlibabaItEslEslimageShowimagecommonRequest 初始化AlibabaItEslEslimageShowimagecommonAPIRequest对象

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetContent

GetContent Content Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetContent2

GetContent2 Content2 Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetIsCompress

GetIsCompress IsCompress Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetIsManual

GetIsManual IsManual Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetMac

GetMac Mac Getter

func (AlibabaItEslEslimageShowimagecommonAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetContent

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

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetContent2

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

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetIsCompress

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

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

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetIsManual

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

func (*AlibabaItEslEslimageShowimagecommonAPIRequest) SetMac

SetMac is Mac Setter ma地址

type AlibabaItEslEslimageShowimagecommonAPIResponse

type AlibabaItEslEslimageShowimagecommonAPIResponse struct {
	model.CommonResponse
	AlibabaItEslEslimageShowimagecommonAPIResponseModel
}

AlibabaItEslEslimageShowimagecommonAPIResponse 对混合云提供的刷图接口 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"`
}

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

type AlibabaItEslEslinfoGeteslinfoAPIRequest added in v1.2.8

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

AlibabaItEslEslinfoGeteslinfoAPIRequest 厂测查询价签当前信息 API请求 alibaba.it.esl.eslinfo.geteslinfo

工厂对生产出的电子价签进行全流程功能测试,查询价签当前上报的信息

func NewAlibabaItEslEslinfoGeteslinfoRequest added in v1.2.8

func NewAlibabaItEslEslinfoGeteslinfoRequest() *AlibabaItEslEslinfoGeteslinfoAPIRequest

NewAlibabaItEslEslinfoGeteslinfoRequest 初始化AlibabaItEslEslinfoGeteslinfoAPIRequest对象

func (AlibabaItEslEslinfoGeteslinfoAPIRequest) GetApiMethodName added in v1.2.8

func (r AlibabaItEslEslinfoGeteslinfoAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItEslEslinfoGeteslinfoAPIRequest) GetApiParams added in v1.2.8

func (r AlibabaItEslEslinfoGeteslinfoAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItEslEslinfoGeteslinfoAPIRequest) GetMac added in v1.2.8

GetMac Mac Getter

func (AlibabaItEslEslinfoGeteslinfoAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaItEslEslinfoGeteslinfoAPIRequest) SetMac added in v1.2.8

SetMac is Mac Setter mac

type AlibabaItEslEslinfoGeteslinfoAPIResponse added in v1.2.8

type AlibabaItEslEslinfoGeteslinfoAPIResponse struct {
	model.CommonResponse
	AlibabaItEslEslinfoGeteslinfoAPIResponseModel
}

AlibabaItEslEslinfoGeteslinfoAPIResponse 厂测查询价签当前信息 API返回值 alibaba.it.esl.eslinfo.geteslinfo

工厂对生产出的电子价签进行全流程功能测试,查询价签当前上报的信息

type AlibabaItEslEslinfoGeteslinfoAPIResponseModel added in v1.2.8

type AlibabaItEslEslinfoGeteslinfoAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_it_esl_eslinfo_geteslinfo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	EslErrorCode string `json:"esl_error_code,omitempty" xml:"esl_error_code,omitempty"`
	// 错误信息
	EslErrorMsg string `json:"esl_error_msg,omitempty" xml:"esl_error_msg,omitempty"`
	// 数据
	Content *EslTopEngineAssetsDo `json:"content,omitempty" xml:"content,omitempty"`
	// 成功标识
	EslSuccess bool `json:"esl_success,omitempty" xml:"esl_success,omitempty"`
}

AlibabaItEslEslinfoGeteslinfoAPIResponseModel is 厂测查询价签当前信息 成功返回结果

type AlibabaItEslSendledAPIRequest

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

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

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

func NewAlibabaItEslSendledRequest

func NewAlibabaItEslSendledRequest() *AlibabaItEslSendledAPIRequest

NewAlibabaItEslSendledRequest 初始化AlibabaItEslSendledAPIRequest对象

func (AlibabaItEslSendledAPIRequest) GetApiMethodName

func (r AlibabaItEslSendledAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItEslSendledAPIRequest) GetApiParams

func (r AlibabaItEslSendledAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItEslSendledAPIRequest) GetMacAp

GetMacAp MacAp Getter

func (AlibabaItEslSendledAPIRequest) GetRawParams added in v1.2.8

func (r AlibabaItEslSendledAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaItEslSendledAPIRequest) GetType

GetType Type Getter

func (*AlibabaItEslSendledAPIRequest) SetMacAp

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

SetMacAp is MacAp Setter mac

func (*AlibabaItEslSendledAPIRequest) SetType

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

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

type AlibabaItEslSendledAPIResponse

type AlibabaItEslSendledAPIResponse struct {
	model.CommonResponse
	AlibabaItEslSendledAPIResponseModel
}

AlibabaItEslSendledAPIResponse 厂测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"`
}

AlibabaItEslSendledAPIResponseModel is 厂测LED控制 成功返回结果

type AlibabaItEslSendotaAPIRequest

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

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

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

func NewAlibabaItEslSendotaRequest

func NewAlibabaItEslSendotaRequest() *AlibabaItEslSendotaAPIRequest

NewAlibabaItEslSendotaRequest 初始化AlibabaItEslSendotaAPIRequest对象

func (AlibabaItEslSendotaAPIRequest) GetApiMethodName

func (r AlibabaItEslSendotaAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaItEslSendotaAPIRequest) GetApiParams

func (r AlibabaItEslSendotaAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaItEslSendotaAPIRequest) GetMacAp

GetMacAp MacAp Getter

func (AlibabaItEslSendotaAPIRequest) GetOtaDataBase64String

func (r AlibabaItEslSendotaAPIRequest) GetOtaDataBase64String() string

GetOtaDataBase64String OtaDataBase64String Getter

func (AlibabaItEslSendotaAPIRequest) GetRawParams added in v1.2.8

func (r AlibabaItEslSendotaAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaItEslSendotaAPIRequest) SetMacAp

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

SetMacAp is MacAp Setter mac

func (*AlibabaItEslSendotaAPIRequest) SetOtaDataBase64String

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

SetOtaDataBase64String is OtaDataBase64String Setter base64的ota包

type AlibabaItEslSendotaAPIResponse

type AlibabaItEslSendotaAPIResponse struct {
	model.CommonResponse
	AlibabaItEslSendotaAPIResponseModel
}

AlibabaItEslSendotaAPIResponse 电子价签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"`
}

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

type EslTopEngineAssetsDo added in v1.2.8

type EslTopEngineAssetsDo struct {
	// mac
	EslMac string `json:"esl_mac,omitempty" xml:"esl_mac,omitempty"`
	// 价签型号
	EslModelName string `json:"esl_model_name,omitempty" xml:"esl_model_name,omitempty"`
	// 上传来的ap
	ApMac string `json:"ap_mac,omitempty" xml:"ap_mac,omitempty"`
	// 最后上报时间
	Lastseen int64 `json:"lastseen,omitempty" xml:"lastseen,omitempty"`
	// 固件型号
	FirmwareVersion int64 `json:"firmware_version,omitempty" xml:"firmware_version,omitempty"`
	// 电池电量
	BatteryLevel int64 `json:"battery_level,omitempty" xml:"battery_level,omitempty"`
	// 电池电压
	BatteryVoltage int64 `json:"battery_voltage,omitempty" xml:"battery_voltage,omitempty"`
	// ap上次上报的最强rssi值
	ApRssi int64 `json:"ap_rssi,omitempty" xml:"ap_rssi,omitempty"`
}

EslTopEngineAssetsDo 结构体

Jump to

Keyboard shortcuts

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