homeai

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

HOMEAI model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

type FeatureWallDto

type FeatureWallDto struct {
	// 包围盒
	BoundingBox *BoundingBoxDto `json:"bounding_box,omitempty" xml:"bounding_box,omitempty"`
	// 方向四元数
	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"`
}

FeatureWallDto

type FeatureWallSuggestionDto

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

FeatureWallSuggestionDto

type TaobaoHomeaiAlgPredictAPIRequest added in v1.2.0

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

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

居然之家硬装预测服务

func NewTaobaoHomeaiAlgPredictRequest

func NewTaobaoHomeaiAlgPredictRequest() *TaobaoHomeaiAlgPredictAPIRequest

初始化TaobaoHomeaiAlgPredictAPIRequest对象

func (TaobaoHomeaiAlgPredictAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoHomeaiAlgPredictAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoHomeaiAlgPredictAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoHomeaiAlgPredictAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoHomeaiAlgPredictAPIRequest) GetFromCase added in v1.2.0

func (r TaobaoHomeaiAlgPredictAPIRequest) GetFromCase() string

FromCase Getter

func (TaobaoHomeaiAlgPredictAPIRequest) GetToCase added in v1.2.0

ToCase Getter

func (*TaobaoHomeaiAlgPredictAPIRequest) SetFromCase added in v1.2.0

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

FromCase Setter 来源房间json

func (*TaobaoHomeaiAlgPredictAPIRequest) SetToCase added in v1.2.0

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

ToCase Setter 我的家房间json

type TaobaoHomeaiAlgPredictAPIResponse

type TaobaoHomeaiAlgPredictAPIResponse struct {
	model.CommonResponse
	TaobaoHomeaiAlgPredictAPIResponseModel
}

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

居然之家硬装预测服务

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"`
}

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

type TaobaoHomeaiAlgPredictResult

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

TaobaoHomeaiAlgPredictResult

Jump to

Keyboard shortcuts

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