alilabs

package
v1.2.1 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=45531&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaAilabTbUserSkillOauthAPIRequest

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

用户技能 Oauth 授权(淘宝 openId) API请求 alibaba.ailab.tb.user.skill.oauth

定制机厂商,在用户配网完成后,厂商调用此接口,写入特定技能的 Oauth 信息

func NewAlibabaAilabTbUserSkillOauthRequest

func NewAlibabaAilabTbUserSkillOauthRequest() *AlibabaAilabTbUserSkillOauthAPIRequest

NewAlibabaAilabTbUserSkillOauthRequest 初始化AlibabaAilabTbUserSkillOauthAPIRequest对象

func (AlibabaAilabTbUserSkillOauthAPIRequest) GetApiMethodName

func (r AlibabaAilabTbUserSkillOauthAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabTbUserSkillOauthAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabTbUserSkillOauthAPIRequest) GetExpireIn

Get ExpireIn Getter

func (AlibabaAilabTbUserSkillOauthAPIRequest) GetOauthAccessToken

func (r AlibabaAilabTbUserSkillOauthAPIRequest) GetOauthAccessToken() string

Get OauthAccessToken Getter

func (AlibabaAilabTbUserSkillOauthAPIRequest) GetRefreshToken

func (r AlibabaAilabTbUserSkillOauthAPIRequest) GetRefreshToken() string

Get RefreshToken Getter

func (AlibabaAilabTbUserSkillOauthAPIRequest) GetTaobaoId

Get TaobaoId Getter

func (*AlibabaAilabTbUserSkillOauthAPIRequest) SetExpireIn

func (r *AlibabaAilabTbUserSkillOauthAPIRequest) SetExpireIn(_expireIn int64) error

Set is ExpireIn Setter access token 过期时间,单位:秒

func (*AlibabaAilabTbUserSkillOauthAPIRequest) SetOauthAccessToken

func (r *AlibabaAilabTbUserSkillOauthAPIRequest) SetOauthAccessToken(_oauthAccessToken string) error

Set is OauthAccessToken Setter access token

func (*AlibabaAilabTbUserSkillOauthAPIRequest) SetRefreshToken

func (r *AlibabaAilabTbUserSkillOauthAPIRequest) SetRefreshToken(_refreshToken string) error

Set is RefreshToken Setter refresh token

func (*AlibabaAilabTbUserSkillOauthAPIRequest) SetTaobaoId

func (r *AlibabaAilabTbUserSkillOauthAPIRequest) SetTaobaoId(_taobaoId string) error

Set is TaobaoId Setter taobao open id

type AlibabaAilabTbUserSkillOauthAPIResponse

type AlibabaAilabTbUserSkillOauthAPIResponse struct {
	model.CommonResponse
	AlibabaAilabTbUserSkillOauthAPIResponseModel
}
AlibabaAilabTbUserSkillOauthAPIResponse

用户技能 Oauth 授权(淘宝 openId) API返回值 alibaba.ailab.tb.user.skill.oauth

定制机厂商,在用户配网完成后,厂商调用此接口,写入特定技能的 Oauth 信息

type AlibabaAilabTbUserSkillOauthAPIResponseModel

type AlibabaAilabTbUserSkillOauthAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailab_tb_user_skill_oauth_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回码,200 代表成功
	StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"`
}

AlibabaAilabTbUserSkillOauthAPIResponseModel is 用户技能 Oauth 授权(淘宝 openId) 成功返回结果

type AlibabaAilabUserAuthorizedCancelAPIRequest

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

取消账号授权 API请求 alibaba.ailab.user.authorized.cancel

三方用户取消授权给天猫精灵用户

func NewAlibabaAilabUserAuthorizedCancelRequest

func NewAlibabaAilabUserAuthorizedCancelRequest() *AlibabaAilabUserAuthorizedCancelAPIRequest

NewAlibabaAilabUserAuthorizedCancelRequest 初始化AlibabaAilabUserAuthorizedCancelAPIRequest对象

func (AlibabaAilabUserAuthorizedCancelAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabUserAuthorizedCancelAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabUserAuthorizedCancelAPIRequest) GetMerchantUserId

func (r AlibabaAilabUserAuthorizedCancelAPIRequest) GetMerchantUserId() string

Get MerchantUserId Getter

func (AlibabaAilabUserAuthorizedCancelAPIRequest) GetSchemaKey

Get SchemaKey Getter

func (*AlibabaAilabUserAuthorizedCancelAPIRequest) SetMerchantUserId

func (r *AlibabaAilabUserAuthorizedCancelAPIRequest) SetMerchantUserId(_merchantUserId string) error

Set is MerchantUserId Setter 三方用户的唯一ID

func (*AlibabaAilabUserAuthorizedCancelAPIRequest) SetSchemaKey

func (r *AlibabaAilabUserAuthorizedCancelAPIRequest) SetSchemaKey(_schemaKey string) error

Set is SchemaKey Setter 开放平台申请的schema

type AlibabaAilabUserAuthorizedCancelAPIResponse

type AlibabaAilabUserAuthorizedCancelAPIResponse struct {
	model.CommonResponse
	AlibabaAilabUserAuthorizedCancelAPIResponseModel
}
AlibabaAilabUserAuthorizedCancelAPIResponse

取消账号授权 API返回值 alibaba.ailab.user.authorized.cancel

三方用户取消授权给天猫精灵用户

type AlibabaAilabUserAuthorizedCancelAPIResponseModel

type AlibabaAilabUserAuthorizedCancelAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailab_user_authorized_cancel_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回码
	StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"`
	// 错误中文描述
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
}

AlibabaAilabUserAuthorizedCancelAPIResponseModel is 取消账号授权 成功返回结果

type AlibabaAilabUserAuthorizedQueryAPIRequest

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

查询授权状态接口 API请求 alibaba.ailab.user.authorized.query

查询三方用户授权状态

func NewAlibabaAilabUserAuthorizedQueryRequest

func NewAlibabaAilabUserAuthorizedQueryRequest() *AlibabaAilabUserAuthorizedQueryAPIRequest

NewAlibabaAilabUserAuthorizedQueryRequest 初始化AlibabaAilabUserAuthorizedQueryAPIRequest对象

func (AlibabaAilabUserAuthorizedQueryAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabUserAuthorizedQueryAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabUserAuthorizedQueryAPIRequest) GetMerchantUserId

func (r AlibabaAilabUserAuthorizedQueryAPIRequest) GetMerchantUserId() string

Get MerchantUserId Getter

func (AlibabaAilabUserAuthorizedQueryAPIRequest) GetSchemaKey

Get SchemaKey Getter

func (*AlibabaAilabUserAuthorizedQueryAPIRequest) SetMerchantUserId

func (r *AlibabaAilabUserAuthorizedQueryAPIRequest) SetMerchantUserId(_merchantUserId string) error

Set is MerchantUserId Setter 三方用户的唯一ID

func (*AlibabaAilabUserAuthorizedQueryAPIRequest) SetSchemaKey

func (r *AlibabaAilabUserAuthorizedQueryAPIRequest) SetSchemaKey(_schemaKey string) error

Set is SchemaKey Setter 开放平台申请的schema

type AlibabaAilabUserAuthorizedQueryAPIResponse

type AlibabaAilabUserAuthorizedQueryAPIResponse struct {
	model.CommonResponse
	AlibabaAilabUserAuthorizedQueryAPIResponseModel
}
AlibabaAilabUserAuthorizedQueryAPIResponse

查询授权状态接口 API返回值 alibaba.ailab.user.authorized.query

查询三方用户授权状态

type AlibabaAilabUserAuthorizedQueryAPIResponseModel

type AlibabaAilabUserAuthorizedQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailab_user_authorized_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 200 成功,其他失败
	StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"`
	// 是否已授权
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

AlibabaAilabUserAuthorizedQueryAPIResponseModel is 查询授权状态接口 成功返回结果

type AlibabaAilabUserOpenUidGetAPIRequest

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

access token 获取精灵用户 id API请求 alibaba.ailab.user.open.uid.get

access token 获取精灵用户 id

func NewAlibabaAilabUserOpenUidGetRequest

func NewAlibabaAilabUserOpenUidGetRequest() *AlibabaAilabUserOpenUidGetAPIRequest

NewAlibabaAilabUserOpenUidGetRequest 初始化AlibabaAilabUserOpenUidGetAPIRequest对象

func (AlibabaAilabUserOpenUidGetAPIRequest) GetApiMethodName

func (r AlibabaAilabUserOpenUidGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabUserOpenUidGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabUserOpenUidGetAPIRequest) GetSkillAccessToken

func (r AlibabaAilabUserOpenUidGetAPIRequest) GetSkillAccessToken() string

Get SkillAccessToken Getter

func (AlibabaAilabUserOpenUidGetAPIRequest) GetSkillId

Get SkillId Getter

func (*AlibabaAilabUserOpenUidGetAPIRequest) SetSkillAccessToken

func (r *AlibabaAilabUserOpenUidGetAPIRequest) SetSkillAccessToken(_skillAccessToken string) error

Set is SkillAccessToken Setter access token

func (*AlibabaAilabUserOpenUidGetAPIRequest) SetSkillId

func (r *AlibabaAilabUserOpenUidGetAPIRequest) SetSkillId(_skillId int64) error

Set is SkillId Setter skill id

type AlibabaAilabUserOpenUidGetAPIResponse

type AlibabaAilabUserOpenUidGetAPIResponse struct {
	model.CommonResponse
	AlibabaAilabUserOpenUidGetAPIResponseModel
}
AlibabaAilabUserOpenUidGetAPIResponse

access token 获取精灵用户 id API返回值 alibaba.ailab.user.open.uid.get

access token 获取精灵用户 id

type AlibabaAilabUserOpenUidGetAPIResponseModel

type AlibabaAilabUserOpenUidGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailab_user_open_uid_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 详细信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// user id
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 状态码,200 成功,其他失败
	StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"`
}

AlibabaAilabUserOpenUidGetAPIResponseModel is access token 获取精灵用户 id 成功返回结果

type AlibabaAilabUserProfileGetAPIRequest

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

查询用户信息 API请求 alibaba.ailab.user.profile.get

提供天猫精灵用户头像、昵称的查询接口,供本田车载天猫精灵使用

func NewAlibabaAilabUserProfileGetRequest

func NewAlibabaAilabUserProfileGetRequest() *AlibabaAilabUserProfileGetAPIRequest

NewAlibabaAilabUserProfileGetRequest 初始化AlibabaAilabUserProfileGetAPIRequest对象

func (AlibabaAilabUserProfileGetAPIRequest) GetApiMethodName

func (r AlibabaAilabUserProfileGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabUserProfileGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabUserProfileGetAPIRequest) GetClientId

Get ClientId Getter

func (AlibabaAilabUserProfileGetAPIRequest) GetOpenUid

Get OpenUid Getter

func (*AlibabaAilabUserProfileGetAPIRequest) SetClientId

func (r *AlibabaAilabUserProfileGetAPIRequest) SetClientId(_clientId string) error

Set is ClientId Setter client id

func (*AlibabaAilabUserProfileGetAPIRequest) SetOpenUid

func (r *AlibabaAilabUserProfileGetAPIRequest) SetOpenUid(_openUid string) error

Set is OpenUid Setter open uid

type AlibabaAilabUserProfileGetAPIResponse

type AlibabaAilabUserProfileGetAPIResponse struct {
	model.CommonResponse
	AlibabaAilabUserProfileGetAPIResponseModel
}
AlibabaAilabUserProfileGetAPIResponse

查询用户信息 API返回值 alibaba.ailab.user.profile.get

提供天猫精灵用户头像、昵称的查询接口,供本田车载天猫精灵使用

type AlibabaAilabUserProfileGetAPIResponseModel

type AlibabaAilabUserProfileGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailab_user_profile_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口model
	Result *AlibabaAilabUserProfileGetResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaAilabUserProfileGetAPIResponseModel is 查询用户信息 成功返回结果

type AlibabaAilabUserProfileGetResult

type AlibabaAilabUserProfileGetResult struct {
	// 数据model
	Result *BasicUserInfo `json:"result,omitempty" xml:"result,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 200 成功,其他 失败
	StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"`
}

AlibabaAilabUserProfileGetResult 结构体

type AlibabaAilabUserTokenGetAPIRequest

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

三方账号获取 token API请求 alibaba.ailab.user.token.get

inside 设备的三方 app,通过 extId、schema 生成 token

func NewAlibabaAilabUserTokenGetRequest

func NewAlibabaAilabUserTokenGetRequest() *AlibabaAilabUserTokenGetAPIRequest

NewAlibabaAilabUserTokenGetRequest 初始化AlibabaAilabUserTokenGetAPIRequest对象

func (AlibabaAilabUserTokenGetAPIRequest) GetApiMethodName

func (r AlibabaAilabUserTokenGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabUserTokenGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabUserTokenGetAPIRequest) GetCallBackUrl

func (r AlibabaAilabUserTokenGetAPIRequest) GetCallBackUrl() string

Get CallBackUrl Getter

func (AlibabaAilabUserTokenGetAPIRequest) GetMerchantUserId

func (r AlibabaAilabUserTokenGetAPIRequest) GetMerchantUserId() string

Get MerchantUserId Getter

func (AlibabaAilabUserTokenGetAPIRequest) GetSchemaKey

func (r AlibabaAilabUserTokenGetAPIRequest) GetSchemaKey() string

Get SchemaKey Getter

func (*AlibabaAilabUserTokenGetAPIRequest) SetCallBackUrl

func (r *AlibabaAilabUserTokenGetAPIRequest) SetCallBackUrl(_callBackUrl string) error

Set is CallBackUrl Setter 用户点击同意授权,则会有授权结果:success/fail,此结果通过 callBackUrl 回调给三方 如果授权账号重复授权给已授权的淘宝账号,幂等返回成功 url 的调用是 表单 post 的方式, request body success example: merchantUserId=xxx&result=success request body fail example: merchantUserId=xxx&result=fail

func (*AlibabaAilabUserTokenGetAPIRequest) SetMerchantUserId

func (r *AlibabaAilabUserTokenGetAPIRequest) SetMerchantUserId(_merchantUserId string) error

Set is MerchantUserId Setter 三方用户的唯一ID

func (*AlibabaAilabUserTokenGetAPIRequest) SetSchemaKey

func (r *AlibabaAilabUserTokenGetAPIRequest) SetSchemaKey(_schemaKey string) error

Set is SchemaKey Setter 开放平台申请的schema

type AlibabaAilabUserTokenGetAPIResponse

type AlibabaAilabUserTokenGetAPIResponse struct {
	model.CommonResponse
	AlibabaAilabUserTokenGetAPIResponseModel
}
AlibabaAilabUserTokenGetAPIResponse

三方账号获取 token API返回值 alibaba.ailab.user.token.get

inside 设备的三方 app,通过 extId、schema 生成 token

type AlibabaAilabUserTokenGetAPIResponseModel

type AlibabaAilabUserTokenGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailab_user_token_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// statusCode
	StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"`
	// 随机 uuid,token 在5分钟后失效,token 在授权成功后失效;建议每次调用 api 获取最新 token
	Token string `json:"token,omitempty" xml:"token,omitempty"`
}

AlibabaAilabUserTokenGetAPIResponseModel is 三方账号获取 token 成功返回结果

type AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest

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

设备列表更新通知 API请求 alibaba.ailabs.iot.device.list.update.notify

用于人工智能实验室IoT合作厂商上报三方接入IoT设备列表更新时的通知

func NewAlibabaAilabsIotDeviceListUpdateNotifyRequest

func NewAlibabaAilabsIotDeviceListUpdateNotifyRequest() *AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest

NewAlibabaAilabsIotDeviceListUpdateNotifyRequest 初始化AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest对象

func (AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) GetSkillId

Get SkillId Getter

func (AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) GetToken

Get Token Getter

func (AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) GetType

Get Type Getter

func (*AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) SetSkillId

Set is SkillId Setter 厂商在天猫精灵开放平台申请的技能id

func (*AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) SetToken

Set is Token Setter 用户OAuth授权后的token

func (*AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) SetType

Set is Type Setter 更新类型 1:设备更新 2:场景更新

type AlibabaAilabsIotDeviceListUpdateNotifyAPIResponse

type AlibabaAilabsIotDeviceListUpdateNotifyAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsIotDeviceListUpdateNotifyAPIResponseModel
}
AlibabaAilabsIotDeviceListUpdateNotifyAPIResponse

设备列表更新通知 API返回值 alibaba.ailabs.iot.device.list.update.notify

用于人工智能实验室IoT合作厂商上报三方接入IoT设备列表更新时的通知

type AlibabaAilabsIotDeviceListUpdateNotifyAPIResponseModel

type AlibabaAilabsIotDeviceListUpdateNotifyAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_iot_device_list_update_notify_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AlibabaAilabsIotDeviceListUpdateNotifyResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaAilabsIotDeviceListUpdateNotifyAPIResponseModel is 设备列表更新通知 成功返回结果

type AlibabaAilabsIotDeviceListUpdateNotifyResult

type AlibabaAilabsIotDeviceListUpdateNotifyResult struct {
	// 附加信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 请求响应码,200代表成功
	StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"`
	// 设备列表更新通知是否成功
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaAilabsIotDeviceListUpdateNotifyResult 结构体

type AlibabaAilabsIotDeviceStatusUpdateAPIRequest

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

ailabs iot 设备状态更新 API请求 alibaba.ailabs.iot.device.status.update

用于人工智能实验室IoT合作厂商上报三方接入IoT设备状态更新时的设备状态上报

func NewAlibabaAilabsIotDeviceStatusUpdateRequest

func NewAlibabaAilabsIotDeviceStatusUpdateRequest() *AlibabaAilabsIotDeviceStatusUpdateAPIRequest

NewAlibabaAilabsIotDeviceStatusUpdateRequest 初始化AlibabaAilabsIotDeviceStatusUpdateAPIRequest对象

func (AlibabaAilabsIotDeviceStatusUpdateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsIotDeviceStatusUpdateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsIotDeviceStatusUpdateAPIRequest) GetDeviceStatusDTO

Get DeviceStatusDTO Getter

func (*AlibabaAilabsIotDeviceStatusUpdateAPIRequest) SetDeviceStatusDTO

func (r *AlibabaAilabsIotDeviceStatusUpdateAPIRequest) SetDeviceStatusDTO(_deviceStatusDTO *DeviceStatusDto) error

Set is DeviceStatusDTO Setter 入参设备信息

type AlibabaAilabsIotDeviceStatusUpdateAPIResponse

type AlibabaAilabsIotDeviceStatusUpdateAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsIotDeviceStatusUpdateAPIResponseModel
}
AlibabaAilabsIotDeviceStatusUpdateAPIResponse

ailabs iot 设备状态更新 API返回值 alibaba.ailabs.iot.device.status.update

用于人工智能实验室IoT合作厂商上报三方接入IoT设备状态更新时的设备状态上报

type AlibabaAilabsIotDeviceStatusUpdateAPIResponseModel

type AlibabaAilabsIotDeviceStatusUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_iot_device_status_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 设备状态更新是否成功
	Result *AlibabaAilabsIotDeviceStatusUpdateResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaAilabsIotDeviceStatusUpdateAPIResponseModel is ailabs iot 设备状态更新 成功返回结果

type AlibabaAilabsIotDeviceStatusUpdateResult

type AlibabaAilabsIotDeviceStatusUpdateResult struct {
	// 附加信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 请求响应码,200代表成功
	StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"`
	// 设备状态是否更新成功
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
	// 异常
	Exception string `json:"exception,omitempty" xml:"exception,omitempty"`
}

AlibabaAilabsIotDeviceStatusUpdateResult 结构体

type AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest

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

获取设备详情 API请求 alibaba.ailabs.tmallgenie.auth.device.get

通过此接口获取设备详情

func NewAlibabaAilabsTmallgenieAuthDeviceGetRequest

func NewAlibabaAilabsTmallgenieAuthDeviceGetRequest() *AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest

NewAlibabaAilabsTmallgenieAuthDeviceGetRequest 初始化AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest对象

func (AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) GetClientId

Get ClientId Getter

func (AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) GetUserOpenId

Get UserOpenId Getter

func (AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) GetUuid

Get Uuid Getter

func (*AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) SetClientId

Set is ClientId Setter 客户id

func (*AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) SetUserOpenId

func (r *AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) SetUserOpenId(_userOpenId string) error

Set is UserOpenId Setter 用户开放id

func (*AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) SetUuid

Set is Uuid Setter 设备uuid

type AlibabaAilabsTmallgenieAuthDeviceGetAPIResponse

type AlibabaAilabsTmallgenieAuthDeviceGetAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsTmallgenieAuthDeviceGetAPIResponseModel
}
AlibabaAilabsTmallgenieAuthDeviceGetAPIResponse

获取设备详情 API返回值 alibaba.ailabs.tmallgenie.auth.device.get

通过此接口获取设备详情

type AlibabaAilabsTmallgenieAuthDeviceGetAPIResponseModel

type AlibabaAilabsTmallgenieAuthDeviceGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 设备信息
	DeviceInfo *AlibabaAilabsTmallgenieAuthDeviceGetResult `json:"device_info,omitempty" xml:"device_info,omitempty"`
}

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

type AlibabaAilabsTmallgenieAuthDeviceGetResult

type AlibabaAilabsTmallgenieAuthDeviceGetResult struct {
	// 拓展信息
	Extensions string `json:"extensions,omitempty" xml:"extensions,omitempty"`
	// 设备名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 设备三方唯一id
	DeviceId string `json:"device_id,omitempty" xml:"device_id,omitempty"`
	// 设备uuid
	Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"`
}

AlibabaAilabsTmallgenieAuthDeviceGetResult 结构体

type AlibabaAilabsTmallgenieAuthDeviceListAPIRequest

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

获取用户设备列表 API请求 alibaba.ailabs.tmallgenie.auth.device.list

通过此接口获取用户绑定的设备信息列表

func NewAlibabaAilabsTmallgenieAuthDeviceListRequest

func NewAlibabaAilabsTmallgenieAuthDeviceListRequest() *AlibabaAilabsTmallgenieAuthDeviceListAPIRequest

NewAlibabaAilabsTmallgenieAuthDeviceListRequest 初始化AlibabaAilabsTmallgenieAuthDeviceListAPIRequest对象

func (AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) GetClientId

Get ClientId Getter

func (AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) GetUserOpenId

Get UserOpenId Getter

func (*AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) SetClientId

Set is ClientId Setter 客户id

func (*AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) SetUserOpenId

func (r *AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) SetUserOpenId(_userOpenId string) error

Set is UserOpenId Setter 用户开放id

type AlibabaAilabsTmallgenieAuthDeviceListAPIResponse

type AlibabaAilabsTmallgenieAuthDeviceListAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsTmallgenieAuthDeviceListAPIResponseModel
}
AlibabaAilabsTmallgenieAuthDeviceListAPIResponse

获取用户设备列表 API返回值 alibaba.ailabs.tmallgenie.auth.device.list

通过此接口获取用户绑定的设备信息列表

type AlibabaAilabsTmallgenieAuthDeviceListAPIResponseModel

type AlibabaAilabsTmallgenieAuthDeviceListAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_list_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 设备列表
	Devices []AlibabaAilabsTmallgenieAuthDeviceListResult `json:"devices,omitempty" xml:"devices>alibaba_ailabs_tmallgenie_auth_device_list_result,omitempty"`
}

AlibabaAilabsTmallgenieAuthDeviceListAPIResponseModel is 获取用户设备列表 成功返回结果

type AlibabaAilabsTmallgenieAuthDeviceListResult

type AlibabaAilabsTmallgenieAuthDeviceListResult struct {
	// 拓展信息
	Extensions string `json:"extensions,omitempty" xml:"extensions,omitempty"`
	// 设备名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 设备唯一id
	DeviceId string `json:"device_id,omitempty" xml:"device_id,omitempty"`
	// 设备UUID
	Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"`
}

AlibabaAilabsTmallgenieAuthDeviceListResult 结构体

type AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest

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

扫码激活设备 API请求 alibaba.ailabs.tmallgenie.auth.device.qrcode.activate

三方带屏设备显示二维码(从天猫精灵云获取),使用三方APP扫码,将扫码到的安全code,通过TOP接口请求天猫精灵云,精灵云解析安全code的数据并激活对应的设备。

func NewAlibabaAilabsTmallgenieAuthDeviceQrcodeActivateRequest

func NewAlibabaAilabsTmallgenieAuthDeviceQrcodeActivateRequest() *AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest

NewAlibabaAilabsTmallgenieAuthDeviceQrcodeActivateRequest 初始化AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest对象

func (AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) GetClientId

Get ClientId Getter

func (AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) GetCode

Get Code Getter

func (AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) GetExtInfo

Get ExtInfo Getter

func (AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) GetTaobaoUserOpenid

Get TaobaoUserOpenid Getter

func (*AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) SetClientId

Set is ClientId Setter 产品终端ID

func (*AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) SetCode

Set is Code Setter OAUTH authcode码

func (*AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) SetExtInfo

Set is ExtInfo Setter 扩展数据

func (*AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) SetTaobaoUserOpenid

func (r *AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) SetTaobaoUserOpenid(_taobaoUserOpenid string) error

Set is TaobaoUserOpenid Setter 淘宝授权ID

type AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponse

type AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponseModel
}
AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponse

扫码激活设备 API返回值 alibaba.ailabs.tmallgenie.auth.device.qrcode.activate

三方带屏设备显示二维码(从天猫精灵云获取),使用三方APP扫码,将扫码到的安全code,通过TOP接口请求天猫精灵云,精灵云解析安全code的数据并激活对应的设备。

type AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponseModel

type AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_qrcode_activate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果对象
	Result *SCanQrCodeResultVo `json:"result,omitempty" xml:"result,omitempty"`
	// 结果码
	RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// 结果消息
	RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"`
}

AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponseModel is 扫码激活设备 成功返回结果

type AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest

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

设备状态查询 API请求 alibaba.ailabs.tmallgenie.auth.device.status.get

提供给天猫精灵定制机厂商 查询设备在线状态值

func NewAlibabaAilabsTmallgenieAuthDeviceStatusGetRequest

func NewAlibabaAilabsTmallgenieAuthDeviceStatusGetRequest() *AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest

NewAlibabaAilabsTmallgenieAuthDeviceStatusGetRequest 初始化AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest对象

func (AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) GetClientId

Get ClientId Getter

func (AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) GetUserOpenId

Get UserOpenId Getter

func (AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) GetUuid

Get Uuid Getter

func (*AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) SetClientId

Set is ClientId Setter 给产品分配的唯一ID(22位)

func (*AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) SetUserOpenId

Set is UserOpenId Setter 精灵用户的唯一外部ID

func (*AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) SetUuid

Set is Uuid Setter 精灵设备的唯一ID

type AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponse

type AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponseModel
}
AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponse

设备状态查询 API返回值 alibaba.ailabs.tmallgenie.auth.device.status.get

提供给天猫精灵定制机厂商 查询设备在线状态值

type AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponseModel

type AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_status_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口对象封装
	Result *AlibabaAilabsTmallgenieAuthDeviceStatusGetResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponseModel is 设备状态查询 成功返回结果

type AlibabaAilabsTmallgenieAuthDeviceStatusGetResult

type AlibabaAilabsTmallgenieAuthDeviceStatusGetResult struct {
	// 接口返回model
	Result *AlibabaAilabsTmallgenieAuthDeviceStatusGetResult `json:"result,omitempty" xml:"result,omitempty"`
	// 状态码(200:成功,其他:失败)
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 结果描述
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// IP地址
	DeviceIp string `json:"device_ip,omitempty" xml:"device_ip,omitempty"`
	// 扩展返回,保留使用
	Extensions string `json:"extensions,omitempty" xml:"extensions,omitempty"`
	// 在线状态(0:离线,1:在线)
	OnlineStatus string `json:"online_status,omitempty" xml:"online_status,omitempty"`
	// 设备ID
	Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"`
}

AlibabaAilabsTmallgenieAuthDeviceStatusGetResult 结构体

type AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest

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

解绑设备 API请求 alibaba.ailabs.tmallgenie.auth.device.unbind

通过此接口解绑天猫精灵设备

func NewAlibabaAilabsTmallgenieAuthDeviceUnbindRequest

func NewAlibabaAilabsTmallgenieAuthDeviceUnbindRequest() *AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest

NewAlibabaAilabsTmallgenieAuthDeviceUnbindRequest 初始化AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest对象

func (AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) GetClientId

Get ClientId Getter

func (AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) GetUserOpenId

Get UserOpenId Getter

func (AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) GetUuid

Get Uuid Getter

func (*AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) SetClientId

Set is ClientId Setter 客户id

func (*AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) SetUserOpenId

func (r *AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) SetUserOpenId(_userOpenId string) error

Set is UserOpenId Setter 用户开放id

func (*AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) SetUuid

Set is Uuid Setter 设备uuid

type AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponse

type AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponseModel
}
AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponse

解绑设备 API返回值 alibaba.ailabs.tmallgenie.auth.device.unbind

通过此接口解绑天猫精灵设备

type AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponseModel

type AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_unbind_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回包装类
	Result *AlibabaAilabsTmallgenieAuthDeviceUnbindResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponseModel is 解绑设备 成功返回结果

type AlibabaAilabsTmallgenieAuthDeviceUnbindResult

type AlibabaAilabsTmallgenieAuthDeviceUnbindResult struct {
	// 是否执行成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 系统自动生成
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 系统自动生成
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 系统自动生成
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

AlibabaAilabsTmallgenieAuthDeviceUnbindResult 结构体

type AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest

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

根据三方ID查询设备注册激活信息 API请求 alibaba.ailabs.tmallgenie.auth.device.withdeviceid.get

根据三方ID查询设备注册激活信息

func NewAlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetRequest

func NewAlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetRequest() *AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest

NewAlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetRequest 初始化AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest对象

func (AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest) GetClientId

Get ClientId Getter

func (AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest) GetMac

Get Mac Getter

func (*AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest) SetClientId

Set is ClientId Setter 设备产品ID

func (*AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest) SetMac

Set is Mac Setter mac地址

type AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponse

type AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponseModel
}
AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponse

根据三方ID查询设备注册激活信息 API返回值 alibaba.ailabs.tmallgenie.auth.device.withdeviceid.get

根据三方ID查询设备注册激活信息

type AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponseModel

type AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_withdeviceid_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponseModel is 根据三方ID查询设备注册激活信息 成功返回结果

type AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResult

type AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResult struct {
	// 结果
	Result *AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResult `json:"result,omitempty" xml:"result,omitempty"`
	// code
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 用户安全ID
	UserOpenId string `json:"user_open_id,omitempty" xml:"user_open_id,omitempty"`
	// 设备名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 天猫精灵设备唯一ID
	Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"`
	// 设备Mac地址
	DeviceId string `json:"device_id,omitempty" xml:"device_id,omitempty"`
}

AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResult 结构体

type AlibabaAilabsTmallgenieAuthGetcodeAPIRequest

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

获取token API请求 alibaba.ailabs.tmallgenie.auth.getcode

获取天猫精灵authCode

func NewAlibabaAilabsTmallgenieAuthGetcodeRequest

func NewAlibabaAilabsTmallgenieAuthGetcodeRequest() *AlibabaAilabsTmallgenieAuthGetcodeAPIRequest

NewAlibabaAilabsTmallgenieAuthGetcodeRequest 初始化AlibabaAilabsTmallgenieAuthGetcodeAPIRequest对象

func (AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) GetAuthParam

Get AuthParam Getter

func (AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) GetDeviceParam

Get DeviceParam Getter

func (*AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) SetAuthParam

Set is AuthParam Setter 授权参数

func (*AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) SetDeviceParam

func (r *AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) SetDeviceParam(_deviceParam *TopDeviceReqDto) error

Set is DeviceParam Setter 设备参数

type AlibabaAilabsTmallgenieAuthGetcodeAPIResponse

type AlibabaAilabsTmallgenieAuthGetcodeAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsTmallgenieAuthGetcodeAPIResponseModel
}
AlibabaAilabsTmallgenieAuthGetcodeAPIResponse

获取token API返回值 alibaba.ailabs.tmallgenie.auth.getcode

获取天猫精灵authCode

type AlibabaAilabsTmallgenieAuthGetcodeAPIResponseModel

type AlibabaAilabsTmallgenieAuthGetcodeAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_getcode_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 授权码 json 串,包含授权码和二维码URL
	AuthCode string `json:"auth_code,omitempty" xml:"auth_code,omitempty"`
}

AlibabaAilabsTmallgenieAuthGetcodeAPIResponseModel is 获取token 成功返回结果

type AlibabaAilabsTmallgenieAuthGettokenAPIRequest

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

设备授权 API请求 alibaba.ailabs.tmallgenie.auth.gettoken

获取设备授权码

func NewAlibabaAilabsTmallgenieAuthGettokenRequest

func NewAlibabaAilabsTmallgenieAuthGettokenRequest() *AlibabaAilabsTmallgenieAuthGettokenAPIRequest

NewAlibabaAilabsTmallgenieAuthGettokenRequest 初始化AlibabaAilabsTmallgenieAuthGettokenAPIRequest对象

func (AlibabaAilabsTmallgenieAuthGettokenAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsTmallgenieAuthGettokenAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsTmallgenieAuthGettokenAPIRequest) GetAuthCode

Get AuthCode Getter

func (AlibabaAilabsTmallgenieAuthGettokenAPIRequest) GetClientId

Get ClientId Getter

func (AlibabaAilabsTmallgenieAuthGettokenAPIRequest) GetGrantType

Get GrantType Getter

func (*AlibabaAilabsTmallgenieAuthGettokenAPIRequest) SetAuthCode

Set is AuthCode Setter 授权码

func (*AlibabaAilabsTmallgenieAuthGettokenAPIRequest) SetClientId

Set is ClientId Setter clientId

func (*AlibabaAilabsTmallgenieAuthGettokenAPIRequest) SetGrantType

func (r *AlibabaAilabsTmallgenieAuthGettokenAPIRequest) SetGrantType(_grantType string) error

Set is GrantType Setter 授权类型,只支持authorization_code

type AlibabaAilabsTmallgenieAuthGettokenAPIResponse

type AlibabaAilabsTmallgenieAuthGettokenAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsTmallgenieAuthGettokenAPIResponseModel
}
AlibabaAilabsTmallgenieAuthGettokenAPIResponse

设备授权 API返回值 alibaba.ailabs.tmallgenie.auth.gettoken

获取设备授权码

type AlibabaAilabsTmallgenieAuthGettokenAPIResponseModel

type AlibabaAilabsTmallgenieAuthGettokenAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_gettoken_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 设备注册结果
	RegisterResult *RegisterInfoVo `json:"register_result,omitempty" xml:"register_result,omitempty"`
	// 授权结果
	AuthResult *DeviceTokenVo `json:"auth_result,omitempty" xml:"auth_result,omitempty"`
}

AlibabaAilabsTmallgenieAuthGettokenAPIResponseModel is 设备授权 成功返回结果

type AlibabaAilabsTmallgenieAuthRefreshAPIRequest

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

刷新token API请求 alibaba.ailabs.tmallgenie.auth.refresh

通过此接口刷新天猫精灵授权token

func NewAlibabaAilabsTmallgenieAuthRefreshRequest

func NewAlibabaAilabsTmallgenieAuthRefreshRequest() *AlibabaAilabsTmallgenieAuthRefreshAPIRequest

NewAlibabaAilabsTmallgenieAuthRefreshRequest 初始化AlibabaAilabsTmallgenieAuthRefreshAPIRequest对象

func (AlibabaAilabsTmallgenieAuthRefreshAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsTmallgenieAuthRefreshAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsTmallgenieAuthRefreshAPIRequest) GetRefreshTokenRequest

Get RefreshTokenRequest Getter

func (*AlibabaAilabsTmallgenieAuthRefreshAPIRequest) SetRefreshTokenRequest

func (r *AlibabaAilabsTmallgenieAuthRefreshAPIRequest) SetRefreshTokenRequest(_refreshTokenRequest *TopRefreshReqDto) error

Set is RefreshTokenRequest Setter refresh_token_request

type AlibabaAilabsTmallgenieAuthRefreshAPIResponse

type AlibabaAilabsTmallgenieAuthRefreshAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsTmallgenieAuthRefreshAPIResponseModel
}
AlibabaAilabsTmallgenieAuthRefreshAPIResponse

刷新token API返回值 alibaba.ailabs.tmallgenie.auth.refresh

通过此接口刷新天猫精灵授权token

type AlibabaAilabsTmallgenieAuthRefreshAPIResponseModel

type AlibabaAilabsTmallgenieAuthRefreshAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_refresh_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// access token过期时间,相对时间,单位为秒
	AccessExpiresIn int64 `json:"access_expires_in,omitempty" xml:"access_expires_in,omitempty"`
	// access_token
	AccessToken string `json:"access_token,omitempty" xml:"access_token,omitempty"`
	// refresh token过期时间,相对时间,单位为秒
	RefreshExpiresIn int64 `json:"refresh_expires_in,omitempty" xml:"refresh_expires_in,omitempty"`
	// refresh_token
	RefreshToken string `json:"refresh_token,omitempty" xml:"refresh_token,omitempty"`
}

AlibabaAilabsTmallgenieAuthRefreshAPIResponseModel is 刷新token 成功返回结果

type AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest

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

切换用户 API请求 alibaba.ailabs.tmallgenie.auth.switchuser

设备切换授权用户

func NewAlibabaAilabsTmallgenieAuthSwitchuserRequest

func NewAlibabaAilabsTmallgenieAuthSwitchuserRequest() *AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest

NewAlibabaAilabsTmallgenieAuthSwitchuserRequest 初始化AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest对象

func (AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) GetClientId

Get ClientId Getter

func (AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) GetNewUserOpenId

Get NewUserOpenId Getter

func (AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) GetOldUserOpenId

Get OldUserOpenId Getter

func (AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) GetUuid

Get Uuid Getter

func (*AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) SetClientId

Set is ClientId Setter client_id

func (*AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) SetNewUserOpenId

func (r *AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) SetNewUserOpenId(_newUserOpenId string) error

Set is NewUserOpenId Setter 目标用户openId

func (*AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) SetOldUserOpenId

func (r *AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) SetOldUserOpenId(_oldUserOpenId string) error

Set is OldUserOpenId Setter 当前拥有设备权限的用户openId

func (*AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) SetUuid

Set is Uuid Setter 设备uuid

type AlibabaAilabsTmallgenieAuthSwitchuserAPIResponse

type AlibabaAilabsTmallgenieAuthSwitchuserAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsTmallgenieAuthSwitchuserAPIResponseModel
}
AlibabaAilabsTmallgenieAuthSwitchuserAPIResponse

切换用户 API返回值 alibaba.ailabs.tmallgenie.auth.switchuser

设备切换授权用户

type AlibabaAilabsTmallgenieAuthSwitchuserAPIResponseModel

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

AlibabaAilabsTmallgenieAuthSwitchuserAPIResponseModel is 切换用户 成功返回结果

type AlibabaAilabsTmallgenieAuthSwitchuserResult

type AlibabaAilabsTmallgenieAuthSwitchuserResult struct {
	// 扩展信息
	Extension string `json:"extension,omitempty" xml:"extension,omitempty"`
	// 注册结果
	RegisterInfoVO *RegisterInfoVo `json:"register_info_v_o,omitempty" xml:"register_info_v_o,omitempty"`
	// 授权结果
	DeviceTokenVO *DeviceTokenVo `json:"device_token_v_o,omitempty" xml:"device_token_v_o,omitempty"`
}

AlibabaAilabsTmallgenieAuthSwitchuserResult 结构体

type AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest

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

天猫精灵淘宝登录授权绑定接口 API请求 alibaba.ailabs.tmallgenie.auth.taobaoauth

厂商获取用户淘宝授权之后,通过此接口获取天猫精灵授权,并绑定一台设备

func NewAlibabaAilabsTmallgenieAuthTaobaoauthRequest

func NewAlibabaAilabsTmallgenieAuthTaobaoauthRequest() *AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest

NewAlibabaAilabsTmallgenieAuthTaobaoauthRequest 初始化AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest对象

func (AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest) GetAuthParam

Get AuthParam Getter

func (AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest) GetDeviceParam

Get DeviceParam Getter

func (*AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest) SetAuthParam

Set is AuthParam Setter 授权信息

func (*AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest) SetDeviceParam

Set is DeviceParam Setter 设备信息

type AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponse

type AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponseModel
}
AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponse

天猫精灵淘宝登录授权绑定接口 API返回值 alibaba.ailabs.tmallgenie.auth.taobaoauth

厂商获取用户淘宝授权之后,通过此接口获取天猫精灵授权,并绑定一台设备

type AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponseModel

type AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_taobaoauth_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 注册结果
	RegisterResult *RegisterInfoVo `json:"register_result,omitempty" xml:"register_result,omitempty"`
	// 授权结果
	AuthResult *DeviceTokenVo `json:"auth_result,omitempty" xml:"auth_result,omitempty"`
}

AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponseModel is 天猫精灵淘宝登录授权绑定接口 成功返回结果

type AlibabaAilabsTvsDeviceListAPIRequest

type AlibabaAilabsTvsDeviceListAPIRequest struct {
	model.Params
}
AlibabaAilabsTvsDeviceListAPIRequest

获取TVS设备列表 API请求 alibaba.ailabs.tvs.device.list

获取用户所绑定的TVS设备列表

func NewAlibabaAilabsTvsDeviceListRequest

func NewAlibabaAilabsTvsDeviceListRequest() *AlibabaAilabsTvsDeviceListAPIRequest

NewAlibabaAilabsTvsDeviceListRequest 初始化AlibabaAilabsTvsDeviceListAPIRequest对象

func (AlibabaAilabsTvsDeviceListAPIRequest) GetApiMethodName

func (r AlibabaAilabsTvsDeviceListAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAilabsTvsDeviceListAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

type AlibabaAilabsTvsDeviceListAPIResponse

type AlibabaAilabsTvsDeviceListAPIResponse struct {
	model.CommonResponse
	AlibabaAilabsTvsDeviceListAPIResponseModel
}
AlibabaAilabsTvsDeviceListAPIResponse

获取TVS设备列表 API返回值 alibaba.ailabs.tvs.device.list

获取用户所绑定的TVS设备列表

type AlibabaAilabsTvsDeviceListAPIResponseModel

type AlibabaAilabsTvsDeviceListAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ailabs_tvs_device_list_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 设备信息列表
	Devices []AlibabaAilabsTvsDeviceListData `json:"devices,omitempty" xml:"devices>alibaba_ailabs_tvs_device_list_data,omitempty"`
	// 接口调用结果代码,200代表调用成功。
	StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"`
	// 接口调用错误时给出的错误相关信息。
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 服务请求是否成功。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaAilabsTvsDeviceListAPIResponseModel is 获取TVS设备列表 成功返回结果

type AlibabaAilabsTvsDeviceListData

type AlibabaAilabsTvsDeviceListData struct {
	// 设备名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 设备激活时间
	ActivateTime string `json:"activate_time,omitempty" xml:"activate_time,omitempty"`
	// TVS服务给予设备的唯一标识
	Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"`
	// 厂商给定的设备硬件标识
	Dsn string `json:"dsn,omitempty" xml:"dsn,omitempty"`
}

AlibabaAilabsTvsDeviceListData 结构体

type BaseResult

type BaseResult struct {
	// ret_msg
	RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"`
	// ret_code
	RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// ret_value
	RetValue *HotWordsContent `json:"ret_value,omitempty" xml:"ret_value,omitempty"`
}

BaseResult 结构体

type BasicUserInfo

type BasicUserInfo struct {
	// 头像 url
	AvatarUrl string `json:"avatar_url,omitempty" xml:"avatar_url,omitempty"`
	// 昵称
	NickName string `json:"nick_name,omitempty" xml:"nick_name,omitempty"`
}

BasicUserInfo 结构体

type DeviceInfo

type DeviceInfo struct {
	// 设备唯一id
	DevId string `json:"dev_id,omitempty" xml:"dev_id,omitempty"`
	// 设备状态Map,key和value均为String
	Status *Status `json:"status,omitempty" xml:"status,omitempty"`
}

DeviceInfo 结构体

type DeviceSkillDetailInfo

type DeviceSkillDetailInfo struct {
	// 技能Id
	SkillId int64 `json:"skill_id,omitempty" xml:"skill_id,omitempty"`
	// 唤醒词
	InvocationName string `json:"invocation_name,omitempty" xml:"invocation_name,omitempty"`
	// 技能名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 提供商集合
	ServiceProviders []ServiceProvider `json:"service_providers,omitempty" xml:"service_providers>service_provider,omitempty"`
	// 类别
	Category string `json:"category,omitempty" xml:"category,omitempty"`
	// 技能图片地址
	IcoinImageUrl string `json:"icoin_image_url,omitempty" xml:"icoin_image_url,omitempty"`
	// 技能描述信息
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 典型例句(多个,以\t分隔)
	Sample string `json:"sample,omitempty" xml:"sample,omitempty"`
}

DeviceSkillDetailInfo 结构体

type DeviceStatusDto

type DeviceStatusDto struct {
	// payload
	Payload *Payload `json:"payload,omitempty" xml:"payload,omitempty"`
	// header
	Header *IotCommonHeader `json:"header,omitempty" xml:"header,omitempty"`
}

DeviceStatusDto 结构体

type DeviceTokenVo

type DeviceTokenVo struct {
	// accessToken超时时间,单位为秒
	AccessExpiresIn int64 `json:"access_expires_in,omitempty" xml:"access_expires_in,omitempty"`
	// accessToken
	AccessToken string `json:"access_token,omitempty" xml:"access_token,omitempty"`
	// refreshToken超时时间,单位为秒
	RefreshExpiresIn int64 `json:"refresh_expires_in,omitempty" xml:"refresh_expires_in,omitempty"`
	// refreshToken
	RefreshToken string `json:"refresh_token,omitempty" xml:"refresh_token,omitempty"`
	// state
	State string `json:"state,omitempty" xml:"state,omitempty"`
}

DeviceTokenVo 结构体

type HotWordsContent

type HotWordsContent struct {
	// 热词列表
	Words []string `json:"words,omitempty" xml:"words>string,omitempty"`
}

HotWordsContent 结构体

type IotCommonHeader

type IotCommonHeader struct {
	// payLoadVersion
	PayLoadVersion int64 `json:"pay_load_version,omitempty" xml:"pay_load_version,omitempty"`
	// name
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// messageId,区分请求使用
	MessageId string `json:"message_id,omitempty" xml:"message_id,omitempty"`
	// namespace
	Namespace string `json:"namespace,omitempty" xml:"namespace,omitempty"`
}

IotCommonHeader 结构体

type PageResult

type PageResult struct {
	// 当前页
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// 分页数量
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 总页数
	PageCount int64 `json:"page_count,omitempty" xml:"page_count,omitempty"`
	// 总数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 结果集
	ResultList []DeviceSkillDetailInfo `json:"result_list,omitempty" xml:"result_list>device_skill_detail_info,omitempty"`
}

PageResult 结构体

type Payload

type Payload struct {
	// 用户token,云云接入设备必填
	Token string `json:"token,omitempty" xml:"token,omitempty"`
	// 设备信息列表
	DeviceInfoList []DeviceInfo `json:"device_info_list,omitempty" xml:"device_info_list>device_info,omitempty"`
	// 云云对接的技能id
	SkillId string `json:"skill_id,omitempty" xml:"skill_id,omitempty"`
	// 设备接入类型,1: 表示零配  2:表示 云云
	Type string `json:"type,omitempty" xml:"type,omitempty"`
}

Payload 结构体

type RegisterInfoVo

type RegisterInfoVo struct {
	// 用户开放id
	UserOpenId string `json:"user_open_id,omitempty" xml:"user_open_id,omitempty"`
	// 设备uuid
	Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"`
}

RegisterInfoVo 结构体

type SCanQrCodeResultVo

type SCanQrCodeResultVo struct {
	// 天猫精灵设备ID
	Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"`
	// 天猫精灵用户ID
	UserOpenId string `json:"user_open_id,omitempty" xml:"user_open_id,omitempty"`
}

SCanQrCodeResultVo 结构体

type ServiceProvider

type ServiceProvider struct {
	// 图片地址
	Icon string `json:"icon,omitempty" xml:"icon,omitempty"`
	// 提供商名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

ServiceProvider 结构体

type Status

type Status struct {
	// 开关状态
	Powerstate string `json:"powerstate,omitempty" xml:"powerstate,omitempty"`
	// 模式
	Mode string `json:"mode,omitempty" xml:"mode,omitempty"`
	// 温度
	Temperature string `json:"temperature,omitempty" xml:"temperature,omitempty"`
	// 亮度
	Brightness string `json:"brightness,omitempty" xml:"brightness,omitempty"`
	// 风速
	Windspeed string `json:"windspeed,omitempty" xml:"windspeed,omitempty"`
}

Status 结构体

type TaobaoAilabAicloudTopHotwordsGetAPIRequest

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

获取热词 API请求 taobao.ailab.aicloud.top.hotwords.get

获取ASR热词

func NewTaobaoAilabAicloudTopHotwordsGetRequest

func NewTaobaoAilabAicloudTopHotwordsGetRequest() *TaobaoAilabAicloudTopHotwordsGetAPIRequest

NewTaobaoAilabAicloudTopHotwordsGetRequest 初始化TaobaoAilabAicloudTopHotwordsGetAPIRequest对象

func (TaobaoAilabAicloudTopHotwordsGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoAilabAicloudTopHotwordsGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoAilabAicloudTopHotwordsGetAPIRequest) GetBizClass

Get BizClass Getter

func (TaobaoAilabAicloudTopHotwordsGetAPIRequest) GetSchema

Get Schema Getter

func (TaobaoAilabAicloudTopHotwordsGetAPIRequest) GetUserId

Get UserId Getter

func (*TaobaoAilabAicloudTopHotwordsGetAPIRequest) SetBizClass

func (r *TaobaoAilabAicloudTopHotwordsGetAPIRequest) SetBizClass(_bizClass string) error

Set is BizClass Setter 业务类型

func (*TaobaoAilabAicloudTopHotwordsGetAPIRequest) SetSchema

Set is Schema Setter schemeKey

func (*TaobaoAilabAicloudTopHotwordsGetAPIRequest) SetUserId

Set is UserId Setter 三方用户id

type TaobaoAilabAicloudTopHotwordsGetAPIResponse

type TaobaoAilabAicloudTopHotwordsGetAPIResponse struct {
	model.CommonResponse
	TaobaoAilabAicloudTopHotwordsGetAPIResponseModel
}
TaobaoAilabAicloudTopHotwordsGetAPIResponse

获取热词 API返回值 taobao.ailab.aicloud.top.hotwords.get

获取ASR热词

type TaobaoAilabAicloudTopHotwordsGetAPIResponseModel

type TaobaoAilabAicloudTopHotwordsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ailab_aicloud_top_hotwords_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// baseresult
	Baseresult *BaseResult `json:"baseresult,omitempty" xml:"baseresult,omitempty"`
}

TaobaoAilabAicloudTopHotwordsGetAPIResponseModel is 获取热词 成功返回结果

type TaobaoAilabAicloudTopHotwordsUpdateAPIRequest

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

更新热词 API请求 taobao.ailab.aicloud.top.hotwords.update

更新ASR热词

func NewTaobaoAilabAicloudTopHotwordsUpdateRequest

func NewTaobaoAilabAicloudTopHotwordsUpdateRequest() *TaobaoAilabAicloudTopHotwordsUpdateAPIRequest

NewTaobaoAilabAicloudTopHotwordsUpdateRequest 初始化TaobaoAilabAicloudTopHotwordsUpdateAPIRequest对象

func (TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetBizClass

Get BizClass Getter

func (TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetContent

Get Content Getter

func (TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetOpType

Get OpType Getter

func (TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetSchema

Get Schema Getter

func (TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetUserId

Get UserId Getter

func (*TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) SetBizClass

Set is BizClass Setter 业务类型

func (*TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) SetContent

Set is Content Setter 热词内容

func (*TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) SetOpType

Set is OpType Setter 操作类型

func (*TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) SetSchema

Set is Schema Setter schemaKey

func (*TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) SetUserId

Set is UserId Setter 三方用户id

type TaobaoAilabAicloudTopHotwordsUpdateAPIResponse

type TaobaoAilabAicloudTopHotwordsUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoAilabAicloudTopHotwordsUpdateAPIResponseModel
}
TaobaoAilabAicloudTopHotwordsUpdateAPIResponse

更新热词 API返回值 taobao.ailab.aicloud.top.hotwords.update

更新ASR热词

type TaobaoAilabAicloudTopHotwordsUpdateAPIResponseModel

type TaobaoAilabAicloudTopHotwordsUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"ailab_aicloud_top_hotwords_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// baseresult
	Baseresult *BaseResult `json:"baseresult,omitempty" xml:"baseresult,omitempty"`
}

TaobaoAilabAicloudTopHotwordsUpdateAPIResponseModel is 更新热词 成功返回结果

type TaobaoAilabAicloudTopSkilsListNewAPIRequest

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

获取产品下挂载的技能列表 API请求 taobao.ailab.aicloud.top.skils.list.new

星空平台提供的获取产品下挂载的技能列表新接口

func NewTaobaoAilabAicloudTopSkilsListNewRequest

func NewTaobaoAilabAicloudTopSkilsListNewRequest() *TaobaoAilabAicloudTopSkilsListNewAPIRequest

NewTaobaoAilabAicloudTopSkilsListNewRequest 初始化TaobaoAilabAicloudTopSkilsListNewAPIRequest对象

func (TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetExt

Get Ext Getter

func (TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetPageNo

Get PageNo Getter

func (TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetPageSize

Get PageSize Getter

func (TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetQuery

Get Query Getter

func (TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetSchema

Get Schema Getter

func (TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetType

Get Type Getter

func (TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetUserId

Get UserId Getter

func (TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetUtdId

Get UtdId Getter

func (*TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetExt

Set is Ext Setter 扩展信息,用于存放APP类型等

func (*TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetPageNo

Set is PageNo Setter pageNo

func (*TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetPageSize

func (r *TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetPageSize(_pageSize int64) error

Set is PageSize Setter pageSize

func (*TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetQuery

Set is Query Setter query(模糊匹配skillName)

func (*TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetSchema

Set is Schema Setter 账户体系隔离

func (*TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetType

Set is Type Setter type(1000代表内容技能,3000代表自定义技能,4000代表官方技能)

func (*TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetUserId

Set is UserId Setter 用户ID,此处传入第三方账户体系的用户id

func (*TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetUtdId

Set is UtdId Setter 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数

type TaobaoAilabAicloudTopSkilsListNewAPIResponse

type TaobaoAilabAicloudTopSkilsListNewAPIResponse struct {
	model.CommonResponse
	TaobaoAilabAicloudTopSkilsListNewAPIResponseModel
}
TaobaoAilabAicloudTopSkilsListNewAPIResponse

获取产品下挂载的技能列表 API返回值 taobao.ailab.aicloud.top.skils.list.new

星空平台提供的获取产品下挂载的技能列表新接口

type TaobaoAilabAicloudTopSkilsListNewAPIResponseModel

type TaobaoAilabAicloudTopSkilsListNewAPIResponseModel struct {
	XMLName xml.Name `xml:"ailab_aicloud_top_skils_list_new_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回包装类
	Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoAilabAicloudTopSkilsListNewAPIResponseModel is 获取产品下挂载的技能列表 成功返回结果

type TopAuthReqDto

type TopAuthReqDto struct {
	// 二维码授权 只支持qrcode
	ResponseType string `json:"response_type,omitempty" xml:"response_type,omitempty"`
	// 天猫精灵分配的clientId
	ClientId string `json:"client_id,omitempty" xml:"client_id,omitempty"`
	// OAUTH2 scope 只支持basic
	Scope string `json:"scope,omitempty" xml:"scope,omitempty"`
	// OAUTH2 state 随意填写
	State string `json:"state,omitempty" xml:"state,omitempty"`
}

TopAuthReqDto 结构体

type TopDeviceReqDto

type TopDeviceReqDto struct {
	// 设备签名
	DeviceSignature string `json:"device_signature,omitempty" xml:"device_signature,omitempty"`
	// 三方设备id
	DeviceId string `json:"device_id,omitempty" xml:"device_id,omitempty"`
}

TopDeviceReqDto 结构体

type TopRefreshReqDto

type TopRefreshReqDto struct {
	// clientId
	ClientId string `json:"client_id,omitempty" xml:"client_id,omitempty"`
	// 只支持“basic”
	Scope string `json:"scope,omitempty" xml:"scope,omitempty"`
	// 只支持“refresh_token”
	GrantType string `json:"grant_type,omitempty" xml:"grant_type,omitempty"`
	// refreshToken
	RefreshToken string `json:"refresh_token,omitempty" xml:"refresh_token,omitempty"`
}

TopRefreshReqDto 结构体

Source Files

Jump to

Keyboard shortcuts

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