homeai

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package homeai 包含HOMEAI相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseBoundingBoxDto added in v1.3.4

func ReleaseBoundingBoxDto(v *BoundingBoxDto)

ReleaseBoundingBoxDto 释放BoundingBoxDto

func ReleaseFeatureWallDto added in v1.3.4

func ReleaseFeatureWallDto(v *FeatureWallDto)

ReleaseFeatureWallDto 释放FeatureWallDto

func ReleaseFeatureWallSuggestionDto added in v1.3.4

func ReleaseFeatureWallSuggestionDto(v *FeatureWallSuggestionDto)

ReleaseFeatureWallSuggestionDto 释放FeatureWallSuggestionDto

func ReleaseTaobaoHomeaiAlgPredictAPIRequest added in v1.3.4

func ReleaseTaobaoHomeaiAlgPredictAPIRequest(v *TaobaoHomeaiAlgPredictAPIRequest)

ReleaseTaobaoHomeaiAlgPredictAPIRequest 将 TaobaoHomeaiAlgPredictAPIRequest 放入 sync.Pool

func ReleaseTaobaoHomeaiAlgPredictAPIResponse added in v1.3.4

func ReleaseTaobaoHomeaiAlgPredictAPIResponse(v *TaobaoHomeaiAlgPredictAPIResponse)

ReleaseTaobaoHomeaiAlgPredictAPIResponse 将 TaobaoHomeaiAlgPredictAPIResponse 保存到 sync.Pool

func ReleaseTaobaoHomeaiAlgPredictResult added in v1.3.4

func ReleaseTaobaoHomeaiAlgPredictResult(v *TaobaoHomeaiAlgPredictResult)

ReleaseTaobaoHomeaiAlgPredictResult 释放TaobaoHomeaiAlgPredictResult

Types

type BoundingBoxDto

type BoundingBoxDto struct {
	// x
	XLen string `json:"x_len,omitempty" xml:"x_len,omitempty"`
	// y
	YLen string `json:"y_len,omitempty" xml:"y_len,omitempty"`
	// z
	ZLen string `json:"z_len,omitempty" xml:"z_len,omitempty"`
}

BoundingBoxDto 结构体

func GetBoundingBoxDto added in v1.3.4

func GetBoundingBoxDto() *BoundingBoxDto

GetBoundingBoxDto() 从对象池中获取BoundingBoxDto

type FeatureWallDto

type FeatureWallDto struct {
	// 方向四元数
	Fronts []string `json:"fronts,omitempty" xml:"fronts>string,omitempty"`
	// 坐标
	Pos []string `json:"pos,omitempty" xml:"pos>string,omitempty"`
	// roomid
	Room string `json:"room,omitempty" xml:"room,omitempty"`
	// 硬装类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 包围盒
	BoundingBox *BoundingBoxDto `json:"bounding_box,omitempty" xml:"bounding_box,omitempty"`
}

FeatureWallDto 结构体

func GetFeatureWallDto added in v1.3.4

func GetFeatureWallDto() *FeatureWallDto

GetFeatureWallDto() 从对象池中获取FeatureWallDto

type FeatureWallSuggestionDto

type FeatureWallSuggestionDto struct {
	// 墙位置
	FeatureWalls []FeatureWallDto `json:"feature_walls,omitempty" xml:"feature_walls>feature_wall_dto,omitempty"`
	// designid
	DesignId string `json:"design_id,omitempty" xml:"design_id,omitempty"`
}

FeatureWallSuggestionDto 结构体

func GetFeatureWallSuggestionDto added in v1.3.4

func GetFeatureWallSuggestionDto() *FeatureWallSuggestionDto

GetFeatureWallSuggestionDto() 从对象池中获取FeatureWallSuggestionDto

type TaobaoHomeaiAlgPredictAPIRequest added in v1.2.0

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

TaobaoHomeaiAlgPredictAPIRequest 硬装预测接口 API请求 taobao.homeai.alg.predict

居然之家硬装预测服务

func GetTaobaoHomeaiAlgPredictAPIRequest added in v1.3.4

func GetTaobaoHomeaiAlgPredictAPIRequest() *TaobaoHomeaiAlgPredictAPIRequest

GetTaobaoHomeaiAlgPredictRequest 从 sync.Pool 获取 TaobaoHomeaiAlgPredictAPIRequest

func NewTaobaoHomeaiAlgPredictRequest

func NewTaobaoHomeaiAlgPredictRequest() *TaobaoHomeaiAlgPredictAPIRequest

NewTaobaoHomeaiAlgPredictRequest 初始化TaobaoHomeaiAlgPredictAPIRequest对象

func (TaobaoHomeaiAlgPredictAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoHomeaiAlgPredictAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoHomeaiAlgPredictAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoHomeaiAlgPredictAPIRequest) GetFromCase added in v1.2.0

func (r TaobaoHomeaiAlgPredictAPIRequest) GetFromCase() string

GetFromCase FromCase Getter

func (TaobaoHomeaiAlgPredictAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoHomeaiAlgPredictAPIRequest) GetToCase added in v1.2.0

GetToCase ToCase Getter

func (*TaobaoHomeaiAlgPredictAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoHomeaiAlgPredictAPIRequest) SetFromCase added in v1.2.0

func (r *TaobaoHomeaiAlgPredictAPIRequest) SetFromCase(_fromCase string) error

SetFromCase is FromCase Setter 来源房间json

func (*TaobaoHomeaiAlgPredictAPIRequest) SetToCase added in v1.2.0

func (r *TaobaoHomeaiAlgPredictAPIRequest) SetToCase(_toCase string) error

SetToCase is ToCase Setter 我的家房间json

type TaobaoHomeaiAlgPredictAPIResponse

type TaobaoHomeaiAlgPredictAPIResponse struct {
	model.CommonResponse
	TaobaoHomeaiAlgPredictAPIResponseModel
}

TaobaoHomeaiAlgPredictAPIResponse 硬装预测接口 API返回值 taobao.homeai.alg.predict

居然之家硬装预测服务

func GetTaobaoHomeaiAlgPredictAPIResponse added in v1.3.4

func GetTaobaoHomeaiAlgPredictAPIResponse() *TaobaoHomeaiAlgPredictAPIResponse

GetTaobaoHomeaiAlgPredictAPIResponse 从 sync.Pool 获取 TaobaoHomeaiAlgPredictAPIResponse

func (*TaobaoHomeaiAlgPredictAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoHomeaiAlgPredictAPIResponseModel added in v1.2.0

type TaobaoHomeaiAlgPredictAPIResponseModel struct {
	XMLName xml.Name `xml:"homeai_alg_predict_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值
	Result *TaobaoHomeaiAlgPredictResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoHomeaiAlgPredictAPIResponseModel is 硬装预测接口 成功返回结果

func (*TaobaoHomeaiAlgPredictAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoHomeaiAlgPredictResult

type TaobaoHomeaiAlgPredictResult struct {
	// code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// errormsg
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// data
	Data *FeatureWallSuggestionDto `json:"data,omitempty" xml:"data,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoHomeaiAlgPredictResult 结构体

func GetTaobaoHomeaiAlgPredictResult added in v1.3.4

func GetTaobaoHomeaiAlgPredictResult() *TaobaoHomeaiAlgPredictResult

GetTaobaoHomeaiAlgPredictResult() 从对象池中获取TaobaoHomeaiAlgPredictResult

Jump to

Keyboard shortcuts

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